I've been dabbling in porting the old vms-empire game to zig, or at least to use zig build for it. After some cleanup i got to the phase where i'm able to use zig cc instead of just cc in the makefile to build it successfully.
I moved to phase where i try to create a build.zig file to build the project and it builds but crashes immediately with illegal hardware instruction.
I'm wondering what is the difference between zig cc and the compile phase of zig build for c-files.
(i'm doing this on intel mac and zig is version 0.13.0)
Current version with make can be found in GitHub
i'd like to build the project successfully with zig build
build.zig, or at least the parts where you configure your C bits.