| ... | @@ -67,14 +67,15 @@ Write-Output "Testing Autodocs..." | ... | @@ -67,14 +67,15 @@ Write-Output "Testing Autodocs..." |
| 67 | -fno-emit-bin | 67 | -fno-emit-bin |
| 68 | CheckLastExitCode | 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 | & "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 |
| 78 | CheckLastExitCode | 79 | CheckLastExitCode |
| 79 | | 80 | |
| 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-end | 88 | --pkg-begin build_options config.zig --pkg-end |
| | 89 | -target x86_64-windows-msvc |
| 88 | CheckLastExitCode | 90 | CheckLastExitCode |
| 89 | | 91 | |
| 90 | Import-Module "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Microsoft.VisualStudio.DevShell.dll" | 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,8 +98,8 @@ Enter-VsDevShell -VsInstallPath "C:\Program Files\Microsoft Visual Studio\2022\E |
| 96 | CheckLastExitCode | 98 | CheckLastExitCode |
| 97 | | 99 | |
| 98 | Write-Output "Build and run behavior tests with msvc..." | 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 | CheckLastExitCode | 102 | CheckLastExitCode |
| 101 | | 103 | |
| 102 | & .\test_behavior.exe | 104 | & .\test-x86_64-windows-msvc.exe |
| 103 | CheckLastExitCode | 105 | CheckLastExitCode |