authorgravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2023-01-21 16:14:52-05:00
committergravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2023-01-23 13:48:37-05:00
log98768a99217303bacdb40ea322ab06478df3b3f7
tree31ed8d74a5f5240b07532bd620475941ca708ef4
parent77084093d8b9d162556e5ea4305ff5268ed0e6e9

ci: explicitly test the CBE tests with the -msvc abi, as this is the path users will use when bootstrapping


1 files changed, 7 insertions(+), 5 deletions(-)

ci/x86_64-windows-release.ps1+7-5
...@@ -67,14 +67,15 @@ Write-Output "Testing Autodocs..."...@@ -67,14 +67,15 @@ Write-Output "Testing Autodocs..."
67 -fno-emit-bin67 -fno-emit-bin
68CheckLastExitCode68CheckLastExitCode
6969
70Write-Output "Build behavior tests using the C backend..."70Write-Output "Build x86_64-windows-msvc behavior tests using the C backend..."
71& "stage3-release\bin\zig.exe" test `71& "stage3-release\bin\zig.exe" test `
72 ..\test\behavior.zig `72 ..\test\behavior.zig `
73 --zig-lib-dir "$ZIG_LIB_DIR" `73 --zig-lib-dir "$ZIG_LIB_DIR" `
74 -I..\test `74 -I..\test `
75 -I..\lib `75 -I..\lib `
76 -ofmt=c `76 -ofmt=c `
77 -femit-bin="test_behavior.c"77 -femit-bin="test-x86_64-windows-msvc.c" `
78 -target x86_64-windows-msvc
78CheckLastExitCode79CheckLastExitCode
7980
80& "stage3-release\bin\zig.exe" build-obj `81& "stage3-release\bin\zig.exe" build-obj `
...@@ -83,8 +84,9 @@ CheckLastExitCode...@@ -83,8 +84,9 @@ CheckLastExitCode
83 -ofmt=c `84 -ofmt=c `
84 -OReleaseSmall `85 -OReleaseSmall `
85 --name compiler_rt `86 --name compiler_rt `
86 -femit-bin="compiler_rt.c" `87 -femit-bin="compiler_rt-x86_64-windows-msvc.c" `
87 --pkg-begin build_options config.zig --pkg-end88 --pkg-begin build_options config.zig --pkg-end
89 -target x86_64-windows-msvc
88CheckLastExitCode90CheckLastExitCode
8991
90Import-Module "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"92Import-Module "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
...@@ -96,8 +98,8 @@ Enter-VsDevShell -VsInstallPath "C:\Program Files\Microsoft Visual Studio\2022\E...@@ -96,8 +98,8 @@ Enter-VsDevShell -VsInstallPath "C:\Program Files\Microsoft Visual Studio\2022\E
96CheckLastExitCode98CheckLastExitCode
9799
98Write-Output "Build and run behavior tests with msvc..."100Write-Output "Build and run behavior tests with msvc..."
99& cl.exe -I..\lib test_behavior.c compiler_rt.c /W3 /Z7 -link -nologo -debug -subsystem:console -entry:wWinMainCRTStartup kernel32.lib ntdll.lib vcruntime.lib libucrt.lib101& cl.exe -I..\lib test-x86_64-windows-msvc.c compiler_rt-x86_64-windows-msvc.c /W3 /Z7 -link -nologo -debug -subsystem:console -entry:wWinMainCRTStartup kernel32.lib ntdll.lib vcruntime.lib libucrt.lib
100CheckLastExitCode102CheckLastExitCode
101103
102& .\test_behavior.exe104& .\test-x86_64-windows-msvc.exe
103CheckLastExitCode105CheckLastExitCode