std.crypto: make ff.ct_unprotected.limbsCmpLt compile (#19741)
[zig.git] / ci / aarch64-macos-debug.sh
blobfb85914c491c04ea9ea333dab72a489a1b68dae0
1 #!/bin/sh
3 set -x
4 set -e
6 # Script assumes the presence of the following:
7 # s3cmd
9 ZIGDIR="$PWD"
10 TARGET="$ARCH-macos-none"
11 MCPU="baseline"
12 CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.12.0-dev.467+0345d7866"
13 PREFIX="$HOME/$CACHE_BASENAME"
14 ZIG="$PREFIX/bin/zig"
16 cd $ZIGDIR
18 # Make the `zig version` number consistent.
19 # This will affect the cmake command below.
20 git fetch --unshallow || true
21 git fetch --tags
23 mkdir build
24 cd build
26 # Override the cache directories because they won't actually help other CI runs
27 # which will be testing alternate versions of zig, and ultimately would just
28 # fill up space on the hard drive for no reason.
29 export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache"
30 export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache"
32 PATH="$HOME/local/bin:$PATH" cmake .. \
33 -DCMAKE_INSTALL_PREFIX="stage3-debug" \
34 -DCMAKE_PREFIX_PATH="$PREFIX" \
35 -DCMAKE_BUILD_TYPE=Debug \
36 -DCMAKE_C_COMPILER="$ZIG;cc;-target;$TARGET;-mcpu=$MCPU" \
37 -DCMAKE_CXX_COMPILER="$ZIG;c++;-target;$TARGET;-mcpu=$MCPU" \
38 -DZIG_TARGET_TRIPLE="$TARGET" \
39 -DZIG_TARGET_MCPU="$MCPU" \
40 -DZIG_STATIC=ON \
41 -DZIG_NO_LIB=ON \
42 -GNinja
44 $HOME/local/bin/ninja install
46 stage3-debug/bin/zig build test docs \
47 --zig-lib-dir "$PWD/../lib" \
48 -Denable-macos-sdk \
49 -Dstatic-llvm \
50 -Dskip-non-native \
51 --search-prefix "$PREFIX"