zig-v8 icon indicating copy to clipboard operation
zig-v8 copied to clipboard

arm64 macOS release tarball

Open kubkon opened this issue 3 years ago • 2 comments

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 :-)

kubkon avatar Dec 22 '21 11:12 kubkon

Thanks for the suggestion! It would be really cool if it works, I will get back to you on this!

fubark avatar Dec 22 '21 16:12 fubark

@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!

fubark avatar Jan 05 '22 00:01 fubark