From f45aac49033c1660be21301843e4aa950924899d Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 9 Nov 2023 14:30:18 -0700 Subject: [PATCH] CI: test building from source without LLVM --- ci/x86_64-linux-debug.sh | 8 ++++++++ ci/x86_64-linux-release.sh | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/ci/x86_64-linux-debug.sh b/ci/x86_64-linux-debug.sh index 69cd569879..bbab0c564d 100755 --- a/ci/x86_64-linux-debug.sh +++ b/ci/x86_64-linux-debug.sh @@ -20,6 +20,14 @@ git config core.abbrev 9 git fetch --unshallow || true git fetch --tags +# Test building from source without LLVM. +git clean -fd +rm -rf zig-out +cc -o bootstrap bootstrap.c +./bootstrap build -Dno-lib +# In order to run these behavior tests we need to move the `@cImport` ones to somewhere else. +# ./zig-out/bin/zig test test/behavior.zig + export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" diff --git a/ci/x86_64-linux-release.sh b/ci/x86_64-linux-release.sh index 421fb89ba7..61320ce0f9 100755 --- a/ci/x86_64-linux-release.sh +++ b/ci/x86_64-linux-release.sh @@ -20,6 +20,14 @@ git config core.abbrev 9 git fetch --unshallow || true git fetch --tags +# Test building from source without LLVM. +git clean -fd +rm -rf zig-out +cc -o bootstrap bootstrap.c +./bootstrap build -Dno-lib +# In order to run these behavior tests we need to move the `@cImport` ones to somewhere else. +# ./zig-out/bin/zig test test/behavior.zig + export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"