zig-v8
zig-v8 copied to clipboard
arm64 macOS release tarball
Hey @fubark, first of, great work! I've had a quick poke at build.zig
and if I understand it correctly, you rely on system build tools to build V8, correct? If you could drop-in zig cc
and zig c++
instead, you should be able to build arm64 macOS on any host (provided we are not missing any relevant libc headers in Zig). Just thought I'd drop this suggestion :-)
Thanks for the suggestion! It would be really cool if it works, I will get back to you on this!
@kubkon It worked just as you said! I patched a few files to inject zig's c++ and added some sysroot headers and it can now build for arm64 macOS from x64 Linux. I also got zig cache to work which will replace sccache (my initial impression is that zig cache is faster). I'm still going to try more cross builds and native builds before making zig toolchain the default. I really appreciate you giving the green light on this!