| ... | @@ -4,6 +4,7 @@ $MCPU = "baseline" | ... | @@ -4,6 +4,7 @@ $MCPU = "baseline" |
| 4 | $ZIG_LLVM_CLANG_LLD_URL = "https://ziglang.org/deps/$ZIG_LLVM_CLANG_LLD_NAME.zip" | 4 | $ZIG_LLVM_CLANG_LLD_URL = "https://ziglang.org/deps/$ZIG_LLVM_CLANG_LLD_NAME.zip" |
| 5 | $PREFIX_PATH = "$(Get-Location)\$ZIG_LLVM_CLANG_LLD_NAME" | 5 | $PREFIX_PATH = "$(Get-Location)\$ZIG_LLVM_CLANG_LLD_NAME" |
| 6 | $ZIG = "$PREFIX_PATH\bin\zig.exe" | 6 | $ZIG = "$PREFIX_PATH\bin\zig.exe" |
| | 7 | $ZIG_LIB_DIR = "$(Get-Location)\lib" |
| 7 | | 8 | |
| 8 | Write-Output "Downloading $ZIG_LLVM_CLANG_LLD_URL" | 9 | Write-Output "Downloading $ZIG_LLVM_CLANG_LLD_URL" |
| 9 | Invoke-WebRequest -Uri "$ZIG_LLVM_CLANG_LLD_URL" -OutFile "$ZIG_LLVM_CLANG_LLD_NAME.zip" | 10 | Invoke-WebRequest -Uri "$ZIG_LLVM_CLANG_LLD_URL" -OutFile "$ZIG_LLVM_CLANG_LLD_NAME.zip" |
| ... | @@ -52,8 +53,8 @@ CheckLastExitCode | ... | @@ -52,8 +53,8 @@ CheckLastExitCode |
| 52 | | 53 | |
| 53 | Write-Output "Main test suite..." | 54 | Write-Output "Main test suite..." |
| 54 | & "stage3-release\bin\zig.exe" build test docs ` | 55 | & "stage3-release\bin\zig.exe" build test docs ` |
| 55 | --zig-lib-dir "..\lib" ` | 56 | --zig-lib-dir "$ZIG_LIB_DIR" ` |
| 56 | --search-prefix "../$ZIG_LLVM_CLANG_LLD_NAME" ` | 57 | --search-prefix "$PREFIX_PATH" ` |
| 57 | -Dstatic-llvm ` | 58 | -Dstatic-llvm ` |
| 58 | -Dskip-non-native ` | 59 | -Dskip-non-native ` |
| 59 | -Denable-symlinks-windows | 60 | -Denable-symlinks-windows |
| ... | @@ -61,8 +62,8 @@ CheckLastExitCode | ... | @@ -61,8 +62,8 @@ CheckLastExitCode |
| 61 | | 62 | |
| 62 | Write-Output "Testing Autodocs..." | 63 | Write-Output "Testing Autodocs..." |
| 63 | & "stage3-release\bin\zig.exe" test "..\lib\std\std.zig" ` | 64 | & "stage3-release\bin\zig.exe" test "..\lib\std\std.zig" ` |
| 64 | --zig-lib-dir "..\lib" ` | 65 | --zig-lib-dir "$ZIG_LIB_DIR" ` |
| 65 | -femit-docs ` | 66 | -femit-docs ` |
| 66 | -fno-emit-bin | 67 | -fno-emit-bin |
| 67 | CheckLastExitCode | 68 | CheckLastExitCode |
| 68 | | 69 | |