authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-09-08 01:37:21+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-09-19 18:20:21-07:00
log335ed630a06d6f95ecc3c8be7548329407e1602e
tree444e4e25808392b7049f5362e298868dda2e9b8e
parent3dd6456c0f8d50801d366062bcf5894bb5d9e7ac

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/aarch64-windows.ps1+2-1
......@@ -55,7 +55,8 @@ $Env:ZIG_LOCAL_CACHE_DIR="$(Get-Location)\zig-local-cache"
5555 -DZIG_TARGET_TRIPLE="$TARGET" `
5656 -DZIG_TARGET_MCPU="$MCPU" `
5757 -DZIG_STATIC=ON `
58 -DZIG_NO_LIB=ON
58 -DZIG_NO_LIB=ON `
59 -DZIG2_NO_RTLIB=ON
5960CheckLastExitCode
6061
6162ninja install
ci/x86_64-windows-debug.ps1+2-1
......@@ -55,7 +55,8 @@ $Env:ZIG_LOCAL_CACHE_DIR="$(Get-Location)\zig-local-cache"
5555 -DZIG_TARGET_TRIPLE="$TARGET" `
5656 -DZIG_TARGET_MCPU="$MCPU" `
5757 -DZIG_STATIC=ON `
58 -DZIG_NO_LIB=ON
58 -DZIG_NO_LIB=ON `
59 -DZIG2_NO_RTLIB=ON
5960CheckLastExitCode
6061
6162ninja install
ci/x86_64-windows-release.ps1+2-1
......@@ -55,7 +55,8 @@ $Env:ZIG_LOCAL_CACHE_DIR="$(Get-Location)\zig-local-cache"
5555 -DZIG_TARGET_TRIPLE="$TARGET" `
5656 -DZIG_TARGET_MCPU="$MCPU" `
5757 -DZIG_STATIC=ON `
58 -DZIG_NO_LIB=ON
58 -DZIG_NO_LIB=ON `
59 -DZIG2_NO_RTLIB=ON
5960CheckLastExitCode
6061
6162ninja install