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..."
6767 -fno-emit-bin
6868CheckLastExitCode
6969
70Write-Output "Build behavior tests using the C backend..."
70Write-Output "Build x86_64-windows-msvc behavior tests using the C backend..."
7171& "stage3-release\bin\zig.exe" test `
7272 ..\test\behavior.zig `
7373 --zig-lib-dir "$ZIG_LIB_DIR" `
7474 -I..\test `
7575 -I..\lib `
7676 -ofmt=c `
77 -femit-bin="test_behavior.c"
77 -femit-bin="test-x86_64-windows-msvc.c" `
78 -target x86_64-windows-msvc
7879CheckLastExitCode
7980
8081& "stage3-release\bin\zig.exe" build-obj `
......@@ -83,8 +84,9 @@ CheckLastExitCode
8384 -ofmt=c `
8485 -OReleaseSmall `
8586 --name compiler_rt `
86 -femit-bin="compiler_rt.c" `
87 -femit-bin="compiler_rt-x86_64-windows-msvc.c" `
8788 --pkg-begin build_options config.zig --pkg-end
89 -target x86_64-windows-msvc
8890CheckLastExitCode
8991
9092Import-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
9698CheckLastExitCode
9799
98100Write-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.lib
101& 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
100102CheckLastExitCode
101103
102& .\test_behavior.exe
104& .\test-x86_64-windows-msvc.exe
103105CheckLastExitCode