aboutsummaryrefslogtreecommitdiff
path: root/ci/azure/linux_script
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-01-07 00:38:48 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-01-07 00:38:48 -0700
commitee1b37040484637b2c8136adf8cc7da833beddfc (patch)
tree4e94755ac91b8f9fe1b0d3fa2b95dec039350382 /ci/azure/linux_script
parenta279cf81b2249ec7f5f7818fd0e3db3ce299853f (diff)
downloadzig-ee1b37040484637b2c8136adf8cc7da833beddfc.tar.gz
zig-ee1b37040484637b2c8136adf8cc7da833beddfc.zip
ci: don't use ninja on linux
I got this error when re-running the cmake line setting -DZIG_EXECUTABLE: ``` ninja: warning: multiple rules generate zig1.o. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn] ``` But it works fine with make.
Diffstat (limited to 'ci/azure/linux_script')
-rwxr-xr-xci/azure/linux_script10
1 files changed, 5 insertions, 5 deletions
diff --git a/ci/azure/linux_script b/ci/azure/linux_script
index 8e3f0b7603..935f5b30db 100755
--- a/ci/azure/linux_script
+++ b/ci/azure/linux_script
@@ -4,7 +4,7 @@ set -x
set -e
sudo apt-get update -q
-sudo apt-get install -y cmake s3cmd ninja-build tidy
+sudo apt-get install -y cmake s3cmd tidy
ZIGDIR="$(pwd)"
ARCH="$(uname -m)"
@@ -12,6 +12,7 @@ TARGET="$ARCH-linux-musl"
CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.8.0-dev.859+f1ef0a80f"
PREFIX="$HOME/$CACHE_BASENAME"
MCPU="baseline"
+JOBS="-j$(nproc)"
rm -rf $PREFIX
cd $HOME
@@ -49,21 +50,20 @@ cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DZIG_TARGET_TRIPLE="$TARGET" \
-DZIG_TARGET_MCPU="$MCPU" \
- -DZIG_STATIC=ON \
- -GNinja
+ -DZIG_STATIC=ON
# Now cmake will use zig as the C/C++ compiler. We reset the environment variables
# so that installation and testing do not get affected by them.
unset CC
unset CXX
-ninja install
+make $JOBS install
# Here we rebuild zig but this time using the Zig binary we just now produced to
# build zig1.o rather than relying on the one built with stage0. See
# https://github.com/ziglang/zig/issues/6830 for more details.
cmake .. -DZIG_EXECUTABLE="$(pwd)/release/bin/zig"
-ninja install
+make $JOBS install
release/bin/zig build test -Denable-qemu -Denable-wasmtime