| ... | ... | @@ -67,14 +67,15 @@ Write-Output "Testing Autodocs..." |
| 67 | 67 | -fno-emit-bin |
| 68 | 68 | CheckLastExitCode |
| 69 | 69 | |
| 70 | | Write-Output "Build behavior tests using the C backend..." |
| 70 | Write-Output "Build x86_64-windows-msvc behavior tests using the C backend..." |
| 71 | 71 | & "stage3-release\bin\zig.exe" test ` |
| 72 | 72 | ..\test\behavior.zig ` |
| 73 | 73 | --zig-lib-dir "$ZIG_LIB_DIR" ` |
| 74 | 74 | -I..\test ` |
| 75 | 75 | -I..\lib ` |
| 76 | 76 | -ofmt=c ` |
| 77 | | -femit-bin="test_behavior.c" |
| 77 | -femit-bin="test-x86_64-windows-msvc.c" ` |
| 78 | -target x86_64-windows-msvc |
| 78 | 79 | CheckLastExitCode |
| 79 | 80 | |
| 80 | 81 | & "stage3-release\bin\zig.exe" build-obj ` |
| ... | ... | @@ -83,8 +84,9 @@ CheckLastExitCode |
| 83 | 84 | -ofmt=c ` |
| 84 | 85 | -OReleaseSmall ` |
| 85 | 86 | --name compiler_rt ` |
| 86 | | -femit-bin="compiler_rt.c" ` |
| 87 | -femit-bin="compiler_rt-x86_64-windows-msvc.c" ` |
| 87 | 88 | --pkg-begin build_options config.zig --pkg-end |
| 89 | -target x86_64-windows-msvc |
| 88 | 90 | CheckLastExitCode |
| 89 | 91 | |
| 90 | 92 | Import-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 | 98 | CheckLastExitCode |
| 97 | 99 | |
| 98 | 100 | Write-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 |
| 100 | 102 | CheckLastExitCode |
| 101 | 103 | |
| 102 | | & .\test_behavior.exe |
| 104 | & .\test-x86_64-windows-msvc.exe |
| 103 | 105 | CheckLastExitCode |