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.
This commit is contained in:
Alex Rønne Petersen 2024-09-08 01:37:21 +02:00 committed by Andrew Kelley
parent 3dd6456c0f
commit 335ed630a0
3 changed files with 6 additions and 3 deletions

View File

@ -55,7 +55,8 @@ $Env:ZIG_LOCAL_CACHE_DIR="$(Get-Location)\zig-local-cache"
-DZIG_TARGET_TRIPLE="$TARGET" `
-DZIG_TARGET_MCPU="$MCPU" `
-DZIG_STATIC=ON `
-DZIG_NO_LIB=ON
-DZIG_NO_LIB=ON `
-DZIG2_NO_RTLIB=ON
CheckLastExitCode
ninja install

View File

@ -55,7 +55,8 @@ $Env:ZIG_LOCAL_CACHE_DIR="$(Get-Location)\zig-local-cache"
-DZIG_TARGET_TRIPLE="$TARGET" `
-DZIG_TARGET_MCPU="$MCPU" `
-DZIG_STATIC=ON `
-DZIG_NO_LIB=ON
-DZIG_NO_LIB=ON `
-DZIG2_NO_RTLIB=ON
CheckLastExitCode
ninja install

View File

@ -55,7 +55,8 @@ $Env:ZIG_LOCAL_CACHE_DIR="$(Get-Location)\zig-local-cache"
-DZIG_TARGET_TRIPLE="$TARGET" `
-DZIG_TARGET_MCPU="$MCPU" `
-DZIG_STATIC=ON `
-DZIG_NO_LIB=ON
-DZIG_NO_LIB=ON `
-DZIG2_NO_RTLIB=ON
CheckLastExitCode
ninja install