ziglang / zig-bootstrap

take off every zig
368 stars 86 forks source link

Windows (MSVC) bootstrapping script #140

Closed kcbanner closed 1 year ago

kcbanner commented 1 year ago

Using build.bat, you can start with MSVC (and the msvc bundled cmake/ninja), and end up with an x64_86-windows-gnu zig.

I've pulled in this change: https://reviews.llvm.org/D134165 in order to fix up how the .def files are passed. The branch we need here is the elseif(MINGW) one.

This build script depends on changes in these pull requests: https://github.com/ziglang/zig/pull/13514 https://github.com/ziglang/zig/pull/14002

kcbanner commented 1 year ago

Moving into review now that https://github.com/ziglang/zig/pull/14002 and https://github.com/ziglang/zig/pull/13514 are in review.

andrewrk commented 1 year ago

I see that the patch has landed upstream in the main branch in https://github.com/llvm/llvm-project/commit/dfbaf90043841d18f5871e12b10c674b9b3abf99, so it's OK for us to carry that patch until we update to LLVM 16 :+1: