| author | |
| committer | |
| log | d4b70505551ecf568f8af7375cb0e6e5aea97cfb |
| tree | 28612fb72185a92c4f43faca49197c38f055223d |
| parent | a802ec7b3e77cf850fad57b4b56cba55426b357e |
This demonstrates one of the downsides of the approach in this branch:
since `zig build` CLI is intentionally unaware of the command line
parsing that will be done by the child process, it cannot obtain zig lib
dir override from the command line even as it needs that information in
order to build the subcommand.
Consequently, zig lib dir has to be passed via env var. CMake does not
provide a way to do this. So instead we rely on Zig's automatic lookup
functionality.
This could be mitigated by adding CLI arg parsing that happens *before*
the subcommand. I find this kind of special case to be awkward and
unpleasant however. I think it's better to simply remove the ability to
pass `--zig-lib-dir` to `zig build`.29 files changed, 85 insertions(+), 39 deletions(-)
CMakeLists.txt-2| ... | ... | @@ -729,8 +729,6 @@ endif() |
| 729 | 729 | |
| 730 | 730 | |
| 731 | 731 | set(ZIG_BUILD_ARGS |
| 732 | --zig-lib-dir "${PROJECT_SOURCE_DIR}/lib" | |
| 733 | ||
| 734 | 732 | "-Dversion-string=${RESOLVED_ZIG_VERSION}" |
| 735 | 733 | "-Dtarget=${ZIG_TARGET_TRIPLE}" |
| 736 | 734 | "-Dcpu=${ZIG_TARGET_MCPU}" |
ci/aarch64-freebsd-debug.sh+3-1| ... | ... | @@ -40,12 +40,14 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | stage3-debug/bin/zig build test docs \ |
| 44 | 47 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| 45 | 48 | -Dstatic-llvm \ |
| 46 | 49 | -Dskip-non-native \ |
| 47 | 50 | --search-prefix "$PREFIX" \ |
| 48 | --zig-lib-dir "$PWD/../lib" \ | |
| 49 | 51 | --test-timeout 4m |
| 50 | 52 | |
| 51 | 53 | stage3-debug/bin/zig build \ |
ci/aarch64-freebsd-release.sh+3-1| ... | ... | @@ -40,12 +40,14 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | stage3-release/bin/zig build test docs \ |
| 44 | 47 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| 45 | 48 | -Dstatic-llvm \ |
| 46 | 49 | -Dskip-non-native \ |
| 47 | 50 | --search-prefix "$PREFIX" \ |
| 48 | --zig-lib-dir "$PWD/../lib" \ | |
| 49 | 51 | --test-timeout 4m |
| 50 | 52 | |
| 51 | 53 | # Ensure that stage3 and stage4 are byte-for-byte identical. |
ci/aarch64-linux-debug.sh+3-1| ... | ... | @@ -42,6 +42,9 @@ unset CXX |
| 42 | 42 | |
| 43 | 43 | ninja install |
| 44 | 44 | |
| 45 | # Must be done after zig cc is finished. | |
| 46 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 47 | ||
| 45 | 48 | # No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts. |
| 46 | 49 | stage3-debug/bin/zig build test docs \ |
| 47 | 50 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| ... | ... | @@ -49,7 +52,6 @@ stage3-debug/bin/zig build test docs \ |
| 49 | 52 | -Dskip-non-native \ |
| 50 | 53 | -Dtarget=native-native-musl \ |
| 51 | 54 | --search-prefix "$PREFIX" \ |
| 52 | --zig-lib-dir "$PWD/../lib" \ | |
| 53 | 55 | -Denable-superhtml \ |
| 54 | 56 | --test-timeout 3m |
| 55 | 57 |
ci/aarch64-linux-release.sh+3-1| ... | ... | @@ -42,6 +42,9 @@ unset CXX |
| 42 | 42 | |
| 43 | 43 | ninja install |
| 44 | 44 | |
| 45 | # Must be done after zig cc is finished. | |
| 46 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 47 | ||
| 45 | 48 | # No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts. |
| 46 | 49 | stage3-release/bin/zig build test docs \ |
| 47 | 50 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| ... | ... | @@ -49,7 +52,6 @@ stage3-release/bin/zig build test docs \ |
| 49 | 52 | -Dskip-non-native \ |
| 50 | 53 | -Dtarget=native-native-musl \ |
| 51 | 54 | --search-prefix "$PREFIX" \ |
| 52 | --zig-lib-dir "$PWD/../lib" \ | |
| 53 | 55 | -Denable-superhtml \ |
| 54 | 56 | --test-timeout 3m |
| 55 | 57 |
ci/aarch64-macos-debug.sh+3-1| ... | ... | @@ -43,9 +43,11 @@ cmake .. \ |
| 43 | 43 | |
| 44 | 44 | ninja install |
| 45 | 45 | |
| 46 | # Must be done after zig cc is finished. | |
| 47 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 48 | ||
| 46 | 49 | stage3-debug/bin/zig build test docs \ |
| 47 | 50 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| 48 | --zig-lib-dir "$PWD/../lib" \ | |
| 49 | 51 | -Denable-macos-sdk \ |
| 50 | 52 | -Dstatic-llvm \ |
| 51 | 53 | -Dskip-spirv \ |
ci/aarch64-macos-release.sh+3-1| ... | ... | @@ -43,8 +43,10 @@ cmake .. \ |
| 43 | 43 | |
| 44 | 44 | ninja install |
| 45 | 45 | |
| 46 | # Must be done after zig cc is finished. | |
| 47 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 48 | ||
| 46 | 49 | stage3-release/bin/zig build test docs \ |
| 47 | --zig-lib-dir "$PWD/../lib" \ | |
| 48 | 50 | -Denable-macos-sdk \ |
| 49 | 51 | -Dstatic-llvm \ |
| 50 | 52 | -Dskip-spirv \ |
ci/aarch64-netbsd-debug.sh+3-1| ... | ... | @@ -40,12 +40,14 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | stage3-debug/bin/zig build test docs \ |
| 44 | 47 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| 45 | 48 | -Dstatic-llvm \ |
| 46 | 49 | -Dskip-non-native \ |
| 47 | 50 | --search-prefix "$PREFIX" \ |
| 48 | --zig-lib-dir "$PWD/../lib" \ | |
| 49 | 51 | --test-timeout 4m |
| 50 | 52 | |
| 51 | 53 | stage3-debug/bin/zig build \ |
ci/aarch64-netbsd-release.sh+3-1| ... | ... | @@ -40,12 +40,14 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | stage3-release/bin/zig build test docs \ |
| 44 | 47 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| 45 | 48 | -Dstatic-llvm \ |
| 46 | 49 | -Dskip-non-native \ |
| 47 | 50 | --search-prefix "$PREFIX" \ |
| 48 | --zig-lib-dir "$PWD/../lib" \ | |
| 49 | 51 | --test-timeout 4m |
| 50 | 52 | |
| 51 | 53 | # Ensure that stage3 and stage4 are byte-for-byte identical. |
ci/aarch64-windows.ps1+3-2| ... | ... | @@ -4,7 +4,6 @@ $MCPU = "baseline" |
| 4 | 4 | $ZIG_LLVM_CLANG_LLD_URL = "https://ziglang.org/deps/$ZIG_LLVM_CLANG_LLD_NAME.zip" |
| 5 | 5 | $PREFIX_PATH = "$(Get-Location)\..\$ZIG_LLVM_CLANG_LLD_NAME" |
| 6 | 6 | $ZIG = "$PREFIX_PATH\bin\zig.exe" |
| 7 | $ZIG_LIB_DIR = "$(Get-Location)\lib" | |
| 8 | 7 | $ZSF_MAX_RSS = if ($Env:ZSF_MAX_RSS) { $Env:ZSF_MAX_RSS } else { 0 } |
| 9 | 8 | |
| 10 | 9 | if (!(Test-Path "..\$ZIG_LLVM_CLANG_LLD_NAME.zip")) { |
| ... | ... | @@ -53,10 +52,12 @@ CheckLastExitCode |
| 53 | 52 | ninja install |
| 54 | 53 | CheckLastExitCode |
| 55 | 54 | |
| 55 | # Must be done after zig cc is finished. | |
| 56 | $Env:ZIG_LIB_DIR="$(Get-Location)\..\lib" | |
| 57 | ||
| 56 | 58 | Write-Output "Main test suite..." |
| 57 | 59 | & "stage3-release\bin\zig.exe" build test docs ` |
| 58 | 60 | --maxrss $ZSF_MAX_RSS ` |
| 59 | --zig-lib-dir "$ZIG_LIB_DIR" ` | |
| 60 | 61 | --search-prefix "$PREFIX_PATH" ` |
| 61 | 62 | -Dstatic-llvm ` |
| 62 | 63 | -Dskip-non-native ` |
ci/loongarch64-linux-debug.sh+3-1| ... | ... | @@ -40,6 +40,9 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | # No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts. |
| 44 | 47 | stage3-debug/bin/zig build test docs \ |
| 45 | 48 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| ... | ... | @@ -47,7 +50,6 @@ stage3-debug/bin/zig build test docs \ |
| 47 | 50 | -Dskip-non-native \ |
| 48 | 51 | -Dtarget=native-native-musl \ |
| 49 | 52 | --search-prefix "$PREFIX" \ |
| 50 | --zig-lib-dir "$PWD/../lib" \ | |
| 51 | 53 | --test-timeout 4m |
| 52 | 54 | |
| 53 | 55 | stage3-debug/bin/zig build \ |
ci/loongarch64-linux-release.sh+3-1| ... | ... | @@ -40,6 +40,9 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | # No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts. |
| 44 | 47 | stage3-release/bin/zig build test docs \ |
| 45 | 48 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| ... | ... | @@ -47,7 +50,6 @@ stage3-release/bin/zig build test docs \ |
| 47 | 50 | -Dskip-non-native \ |
| 48 | 51 | -Dtarget=native-native-musl \ |
| 49 | 52 | --search-prefix "$PREFIX" \ |
| 50 | --zig-lib-dir "$PWD/../lib" \ | |
| 51 | 53 | --test-timeout 4m |
| 52 | 54 | |
| 53 | 55 | # Ensure that stage3 and stage4 are byte-for-byte identical. |
ci/powerpc64le-linux-debug.sh+3-1| ... | ... | @@ -40,6 +40,9 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | # No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts. |
| 44 | 47 | stage3-debug/bin/zig build test docs \ |
| 45 | 48 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| ... | ... | @@ -48,7 +51,6 @@ stage3-debug/bin/zig build test docs \ |
| 48 | 51 | -Dtarget=native-native-musl \ |
| 49 | 52 | -Dcpu=native+longcall \ |
| 50 | 53 | --search-prefix "$PREFIX" \ |
| 51 | --zig-lib-dir "$PWD/../lib" \ | |
| 52 | 54 | --test-timeout 4m |
| 53 | 55 | |
| 54 | 56 | stage3-debug/bin/zig build \ |
ci/powerpc64le-linux-release.sh+3-1| ... | ... | @@ -40,6 +40,9 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | # No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts. |
| 44 | 47 | stage3-release/bin/zig build test docs \ |
| 45 | 48 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| ... | ... | @@ -48,7 +51,6 @@ stage3-release/bin/zig build test docs \ |
| 48 | 51 | -Dtarget=native-native-musl \ |
| 49 | 52 | -Dcpu=native+longcall \ |
| 50 | 53 | --search-prefix "$PREFIX" \ |
| 51 | --zig-lib-dir "$PWD/../lib" \ | |
| 52 | 54 | --test-timeout 4m |
| 53 | 55 | |
| 54 | 56 | # Ensure that stage3 and stage4 are byte-for-byte identical. |
ci/riscv64-linux-debug.sh+3-1| ... | ... | @@ -42,6 +42,9 @@ unset CXX |
| 42 | 42 | |
| 43 | 43 | ninja install |
| 44 | 44 | |
| 45 | # Must be done after zig cc is finished. | |
| 46 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 47 | ||
| 45 | 48 | # No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts. |
| 46 | 49 | stage3-debug/bin/zig build test-modules test-c-abi \ |
| 47 | 50 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| ... | ... | @@ -50,5 +53,4 @@ stage3-debug/bin/zig build test-modules test-c-abi \ |
| 50 | 53 | -Dskip-single-threaded \ |
| 51 | 54 | -Dtarget=native-native-musl \ |
| 52 | 55 | --search-prefix "$PREFIX" \ |
| 53 | --zig-lib-dir "$PWD/../lib" \ | |
| 54 | 56 | --test-timeout 4m |
ci/riscv64-linux-release.sh+3-1| ... | ... | @@ -42,6 +42,9 @@ unset CXX |
| 42 | 42 | |
| 43 | 43 | ninja install |
| 44 | 44 | |
| 45 | # Must be done after zig cc is finished. | |
| 46 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 47 | ||
| 45 | 48 | # No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts. |
| 46 | 49 | stage3-release/bin/zig build test-modules test-c-abi \ |
| 47 | 50 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| ... | ... | @@ -50,5 +53,4 @@ stage3-release/bin/zig build test-modules test-c-abi \ |
| 50 | 53 | -Dskip-single-threaded \ |
| 51 | 54 | -Dtarget=native-native-musl \ |
| 52 | 55 | --search-prefix "$PREFIX" \ |
| 53 | --zig-lib-dir "$PWD/../lib" \ | |
| 54 | 56 | --test-timeout 4m |
ci/s390x-linux-debug.sh+3-1| ... | ... | @@ -40,6 +40,9 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | # No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts. |
| 44 | 47 | stage3-debug/bin/zig build test docs \ |
| 45 | 48 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| ... | ... | @@ -47,7 +50,6 @@ stage3-debug/bin/zig build test docs \ |
| 47 | 50 | -Dskip-non-native \ |
| 48 | 51 | -Dtarget=native-native-musl \ |
| 49 | 52 | --search-prefix "$PREFIX" \ |
| 50 | --zig-lib-dir "$PWD/../lib" \ | |
| 51 | 53 | --test-timeout 4m |
| 52 | 54 | |
| 53 | 55 | stage3-debug/bin/zig build \ |
ci/s390x-linux-release.sh+3-1| ... | ... | @@ -40,6 +40,9 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | # No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts. |
| 44 | 47 | stage3-release/bin/zig build test docs \ |
| 45 | 48 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| ... | ... | @@ -47,7 +50,6 @@ stage3-release/bin/zig build test docs \ |
| 47 | 50 | -Dskip-non-native \ |
| 48 | 51 | -Dtarget=native-native-musl \ |
| 49 | 52 | --search-prefix "$PREFIX" \ |
| 50 | --zig-lib-dir "$PWD/../lib" \ | |
| 51 | 53 | --test-timeout 4m |
| 52 | 54 | |
| 53 | 55 | # Ensure that stage3 and stage4 are byte-for-byte identical. |
ci/x86_64-freebsd-debug.sh+3-1| ... | ... | @@ -40,6 +40,9 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | stage3-debug/bin/zig build test docs \ |
| 44 | 47 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| 45 | 48 | -Dstatic-llvm \ |
| ... | ... | @@ -51,7 +54,6 @@ stage3-debug/bin/zig build test docs \ |
| 51 | 54 | -Dskip-windows \ |
| 52 | 55 | -Dskip-darwin \ |
| 53 | 56 | --search-prefix "$PREFIX" \ |
| 54 | --zig-lib-dir "$PWD/../lib" \ | |
| 55 | 57 | --test-timeout 2m |
| 56 | 58 | |
| 57 | 59 | stage3-debug/bin/zig build \ |
ci/x86_64-freebsd-release.sh+3-1| ... | ... | @@ -40,6 +40,9 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | stage3-release/bin/zig build test docs \ |
| 44 | 47 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| 45 | 48 | -Dstatic-llvm \ |
| ... | ... | @@ -51,7 +54,6 @@ stage3-release/bin/zig build test docs \ |
| 51 | 54 | -Dskip-windows \ |
| 52 | 55 | -Dskip-darwin \ |
| 53 | 56 | --search-prefix "$PREFIX" \ |
| 54 | --zig-lib-dir "$PWD/../lib" \ | |
| 55 | 57 | --test-timeout 2m |
| 56 | 58 | |
| 57 | 59 | # Ensure that the fuzzer at least compiles. |
ci/x86_64-linux-debug-llvm.sh+3-1| ... | ... | @@ -43,6 +43,9 @@ unset CXX |
| 43 | 43 | |
| 44 | 44 | ninja install |
| 45 | 45 | |
| 46 | # Must be done after zig cc is finished. | |
| 47 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 48 | ||
| 46 | 49 | # simultaneously test building self-hosted without LLVM and with 32-bit arm |
| 47 | 50 | stage3-debug/bin/zig build \ |
| 48 | 51 | -Dtarget=arm-linux-musleabihf \ |
| ... | ... | @@ -63,7 +66,6 @@ stage3-debug/bin/zig build test docs \ |
| 63 | 66 | -Dskip-darwin \ |
| 64 | 67 | -Dtarget=native-native-musl \ |
| 65 | 68 | --search-prefix "$PREFIX" \ |
| 66 | --zig-lib-dir "$PWD/../lib" \ | |
| 67 | 69 | -Denable-superhtml \ |
| 68 | 70 | --test-timeout 12m |
| 69 | 71 |
ci/x86_64-linux-debug.sh+3-1| ... | ... | @@ -42,6 +42,9 @@ unset CXX |
| 42 | 42 | |
| 43 | 43 | ninja install |
| 44 | 44 | |
| 45 | # Must be done after zig cc is finished. | |
| 46 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 47 | ||
| 45 | 48 | # simultaneously test building self-hosted without LLVM and with 32-bit arm |
| 46 | 49 | stage3-debug/bin/zig build \ |
| 47 | 50 | -Dtarget=arm-linux-musleabihf \ |
| ... | ... | @@ -63,7 +66,6 @@ stage3-debug/bin/zig build test docs \ |
| 63 | 66 | -Dskip-llvm \ |
| 64 | 67 | -Dtarget=native-native-musl \ |
| 65 | 68 | --search-prefix "$PREFIX" \ |
| 66 | --zig-lib-dir "$PWD/../lib" \ | |
| 67 | 69 | -Denable-superhtml \ |
| 68 | 70 | --test-timeout 10m |
| 69 | 71 |
ci/x86_64-linux-release.sh+4-3| ... | ... | @@ -48,6 +48,9 @@ unset CXX |
| 48 | 48 | |
| 49 | 49 | ninja install |
| 50 | 50 | |
| 51 | # Must be done after zig cc is finished. | |
| 52 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 53 | ||
| 51 | 54 | # Covers several things: |
| 52 | 55 | # 1. building the compiler without LLVM |
| 53 | 56 | # 2. 32-bit |
| ... | ... | @@ -66,7 +69,6 @@ stage3-release/bin/zig build test docs \ |
| 66 | 69 | -Dstatic-llvm \ |
| 67 | 70 | -Dtarget=native-native-musl \ |
| 68 | 71 | --search-prefix "$PREFIX" \ |
| 69 | --zig-lib-dir "$PWD/../lib" \ | |
| 70 | 72 | -Denable-superhtml \ |
| 71 | 73 | --test-timeout 12m |
| 72 | 74 | |
| ... | ... | @@ -120,6 +122,5 @@ stage3/bin/zig build -p stage4 \ |
| 120 | 122 | -Dstatic-llvm \ |
| 121 | 123 | -Dtarget=native-native-musl \ |
| 122 | 124 | -Dno-lib \ |
| 123 | --search-prefix "$PREFIX" \ | |
| 124 | --zig-lib-dir "$PWD/../lib" | |
| 125 | --search-prefix "$PREFIX" | |
| 125 | 126 | stage4/bin/zig test ../test/behavior.zig |
ci/x86_64-netbsd-debug.sh+3-1| ... | ... | @@ -40,12 +40,14 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | stage3-debug/bin/zig build test docs \ |
| 44 | 47 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| 45 | 48 | -Dstatic-llvm \ |
| 46 | 49 | -Dskip-non-native \ |
| 47 | 50 | --search-prefix "$PREFIX" \ |
| 48 | --zig-lib-dir "$PWD/../lib" \ | |
| 49 | 51 | --test-timeout 2m |
| 50 | 52 | |
| 51 | 53 | stage3-debug/bin/zig build \ |
ci/x86_64-netbsd-release.sh+3-1| ... | ... | @@ -40,12 +40,14 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | stage3-release/bin/zig build test docs \ |
| 44 | 47 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| 45 | 48 | -Dstatic-llvm \ |
| 46 | 49 | -Dskip-non-native \ |
| 47 | 50 | --search-prefix "$PREFIX" \ |
| 48 | --zig-lib-dir "$PWD/../lib" \ | |
| 49 | 51 | --test-timeout 2m |
| 50 | 52 | |
| 51 | 53 | # Ensure that the fuzzer at least compiles. |
ci/x86_64-openbsd-debug.sh+3-1| ... | ... | @@ -40,12 +40,14 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | stage3-debug/bin/zig build test docs \ |
| 44 | 47 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| 45 | 48 | -Dstatic-llvm \ |
| 46 | 49 | -Dskip-non-native \ |
| 47 | 50 | --search-prefix "$PREFIX" \ |
| 48 | --zig-lib-dir "$PWD/../lib" \ | |
| 49 | 51 | --test-timeout 2m |
| 50 | 52 | |
| 51 | 53 | stage3-debug/bin/zig build \ |
ci/x86_64-openbsd-release.sh+3-1| ... | ... | @@ -40,12 +40,14 @@ unset CXX |
| 40 | 40 | |
| 41 | 41 | ninja install |
| 42 | 42 | |
| 43 | # Must be done after zig cc is finished. | |
| 44 | export ZIG_LIB_DIR="$PWD/../lib" | |
| 45 | ||
| 43 | 46 | stage3-release/bin/zig build test docs \ |
| 44 | 47 | --maxrss ${ZSF_MAX_RSS:-0} \ |
| 45 | 48 | -Dstatic-llvm \ |
| 46 | 49 | -Dskip-non-native \ |
| 47 | 50 | --search-prefix "$PREFIX" \ |
| 48 | --zig-lib-dir "$PWD/../lib" \ | |
| 49 | 51 | --test-timeout 2m |
| 50 | 52 | |
| 51 | 53 | # Ensure that the fuzzer at least compiles. |
ci/x86_64-windows-debug.ps1+3-4| ... | ... | @@ -2,7 +2,6 @@ $TARGET = "x86_64-windows-gnu" |
| 2 | 2 | $MCPU = "baseline" |
| 3 | 3 | $PREFIX_PATH = "$($Env:USERPROFILE)\deps\zig+llvm+lld+clang-$TARGET-0.17.0-dev.203+073889523" |
| 4 | 4 | $ZIG = "$PREFIX_PATH\bin\zig.exe" |
| 5 | $ZIG_LIB_DIR = "$(Get-Location)\lib" | |
| 6 | 5 | $ZSF_MAX_RSS = if ($Env:ZSF_MAX_RSS) { $Env:ZSF_MAX_RSS } else { 0 } |
| 7 | 6 | |
| 8 | 7 | function CheckLastExitCode { |
| ... | ... | @@ -42,10 +41,12 @@ CheckLastExitCode |
| 42 | 41 | ninja install |
| 43 | 42 | CheckLastExitCode |
| 44 | 43 | |
| 44 | # Must be done after zig cc is finished. | |
| 45 | $Env:ZIG_LIB_DIR="$(Get-Location)\..\lib" | |
| 46 | ||
| 45 | 47 | Write-Output "Main test suite..." |
| 46 | 48 | stage3-debug\bin\zig build test docs ` |
| 47 | 49 | --maxrss $ZSF_MAX_RSS ` |
| 48 | --zig-lib-dir "$ZIG_LIB_DIR" ` | |
| 49 | 50 | --search-prefix "$PREFIX_PATH" ` |
| 50 | 51 | -Dstatic-llvm ` |
| 51 | 52 | -Dskip-non-native ` |
| ... | ... | @@ -56,7 +57,6 @@ CheckLastExitCode |
| 56 | 57 | |
| 57 | 58 | Write-Output "Build x86_64-windows-msvc behavior tests using the C backend..." |
| 58 | 59 | stage3-debug\bin\zig build-obj ` |
| 59 | --zig-lib-dir "$ZIG_LIB_DIR" ` | |
| 60 | 60 | -ofmt=c ` |
| 61 | 61 | -OReleaseSmall ` |
| 62 | 62 | --name compiler_rt ` |
| ... | ... | @@ -67,7 +67,6 @@ stage3-debug\bin\zig build-obj ` |
| 67 | 67 | CheckLastExitCode |
| 68 | 68 | |
| 69 | 69 | stage3-debug\bin\zig test ` |
| 70 | --zig-lib-dir "$ZIG_LIB_DIR" ` | |
| 71 | 70 | -ofmt=c ` |
| 72 | 71 | -femit-bin="behavior-x86_64-windows-msvc.c" ` |
| 73 | 72 | --test-no-exec ` |
ci/x86_64-windows-release.ps1+3-4| ... | ... | @@ -2,7 +2,6 @@ $TARGET = "x86_64-windows-gnu" |
| 2 | 2 | $MCPU = "baseline" |
| 3 | 3 | $PREFIX_PATH = "$($Env:USERPROFILE)\deps\zig+llvm+lld+clang-$TARGET-0.17.0-dev.203+073889523" |
| 4 | 4 | $ZIG = "$PREFIX_PATH\bin\zig.exe" |
| 5 | $ZIG_LIB_DIR = "$(Get-Location)\lib" | |
| 6 | 5 | $ZSF_MAX_RSS = if ($Env:ZSF_MAX_RSS) { $Env:ZSF_MAX_RSS } else { 0 } |
| 7 | 6 | |
| 8 | 7 | function CheckLastExitCode { |
| ... | ... | @@ -42,10 +41,12 @@ CheckLastExitCode |
| 42 | 41 | ninja install |
| 43 | 42 | CheckLastExitCode |
| 44 | 43 | |
| 44 | # Must be done after zig cc is finished. | |
| 45 | $Env:ZIG_LIB_DIR="$(Get-Location)\..\lib" | |
| 46 | ||
| 45 | 47 | Write-Output "Main test suite..." |
| 46 | 48 | stage3-release\bin\zig.exe build test docs ` |
| 47 | 49 | --maxrss $ZSF_MAX_RSS ` |
| 48 | --zig-lib-dir "$ZIG_LIB_DIR" ` | |
| 49 | 50 | --search-prefix "$PREFIX_PATH" ` |
| 50 | 51 | -Dstatic-llvm ` |
| 51 | 52 | -Dskip-non-native ` |
| ... | ... | @@ -82,7 +83,6 @@ CheckLastExitCode |
| 82 | 83 | |
| 83 | 84 | Write-Output "Build x86_64-windows-msvc behavior tests using the C backend..." |
| 84 | 85 | stage3-release\bin\zig.exe build-obj ` |
| 85 | --zig-lib-dir "$ZIG_LIB_DIR" ` | |
| 86 | 86 | -ofmt=c ` |
| 87 | 87 | -OReleaseSmall ` |
| 88 | 88 | --name compiler_rt ` |
| ... | ... | @@ -93,7 +93,6 @@ stage3-release\bin\zig.exe build-obj ` |
| 93 | 93 | CheckLastExitCode |
| 94 | 94 | |
| 95 | 95 | stage3-release\bin\zig.exe test ` |
| 96 | --zig-lib-dir "$ZIG_LIB_DIR" ` | |
| 97 | 96 | -ofmt=c ` |
| 98 | 97 | -femit-bin="behavior-x86_64-windows-msvc.c" ` |
| 99 | 98 | --test-no-exec ` |