ci: Build with `ZIG2_NO_RTLIB` on Windows machines.
Windows does not really have weak symbols. So when we bootstrap with `zig cc`
and link both Zig's compiler-rt and the CBE's `compiler_rt.c` we end up with
duplicate symbol errors at link time.
3 files changed, 6 insertions(+), 3 deletions(-)
ci
ci/aarch64-windows.ps1+2-1
| ... | ... | @@ -55,7 +55,8 @@ $Env:ZIG_LOCAL_CACHE_DIR="$(Get-Location)\zig-local-cache" |
| 55 | 55 | -DZIG_TARGET_TRIPLE="$TARGET" ` |
| 56 | 56 | -DZIG_TARGET_MCPU="$MCPU" ` |
| 57 | 57 | -DZIG_STATIC=ON ` |
| 58 | | -DZIG_NO_LIB=ON |
| 58 | -DZIG_NO_LIB=ON ` |
| 59 | -DZIG2_NO_RTLIB=ON |
| 59 | 60 | CheckLastExitCode |
| 60 | 61 | |
| 61 | 62 | ninja install |
ci/x86_64-windows-debug.ps1+2-1
| ... | ... | @@ -55,7 +55,8 @@ $Env:ZIG_LOCAL_CACHE_DIR="$(Get-Location)\zig-local-cache" |
| 55 | 55 | -DZIG_TARGET_TRIPLE="$TARGET" ` |
| 56 | 56 | -DZIG_TARGET_MCPU="$MCPU" ` |
| 57 | 57 | -DZIG_STATIC=ON ` |
| 58 | | -DZIG_NO_LIB=ON |
| 58 | -DZIG_NO_LIB=ON ` |
| 59 | -DZIG2_NO_RTLIB=ON |
| 59 | 60 | CheckLastExitCode |
| 60 | 61 | |
| 61 | 62 | ninja install |
ci/x86_64-windows-release.ps1+2-1
| ... | ... | @@ -55,7 +55,8 @@ $Env:ZIG_LOCAL_CACHE_DIR="$(Get-Location)\zig-local-cache" |
| 55 | 55 | -DZIG_TARGET_TRIPLE="$TARGET" ` |
| 56 | 56 | -DZIG_TARGET_MCPU="$MCPU" ` |
| 57 | 57 | -DZIG_STATIC=ON ` |
| 58 | | -DZIG_NO_LIB=ON |
| 58 | -DZIG_NO_LIB=ON ` |
| 59 | -DZIG2_NO_RTLIB=ON |
| 59 | 60 | CheckLastExitCode |
| 60 | 61 | |
| 61 | 62 | ninja install |