zig
zig copied to clipboard
haiku: get a cross-compiled compiler working
$ zig build -p haiku -Dno-lib -Dtarget=x86_64-haiku -Dcpu=x86_64_v2 --libc haiku.libc
~> ./zig build-obj hello.zig -target native-haiku
~> cc -o hello hello.o
~> ./hello
Hello, world!
- bootstrap isn't working because single large allocations > 0x3f60e740 bytes fail, even though many allocations of that size succeed.
-
zig build-exeisn't working when not linked with llvm. -
-target native-nativeisn't working because native abi/dynamic linker detection is failing.
Related #17123 Related #18828
Might be worth splitting ff7ca4b70fc411a9e1e3ba94a06333601a229e6e into its own PR if that'd mean it could get merged faster (see https://github.com/ziglang/zig/issues/19408)