| ... | ... | @@ -4,7 +4,7 @@ set -x |
| 4 | 4 | set -e |
| 5 | 5 | |
| 6 | 6 | sudo apt-get update -q |
| 7 | | sudo apt-get install -y cmake s3cmd ninja-build tidy |
| 7 | sudo apt-get install -y cmake s3cmd tidy |
| 8 | 8 | |
| 9 | 9 | ZIGDIR="$(pwd)" |
| 10 | 10 | ARCH="$(uname -m)" |
| ... | ... | @@ -12,6 +12,7 @@ TARGET="$ARCH-linux-musl" |
| 12 | 12 | CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.8.0-dev.859+f1ef0a80f" |
| 13 | 13 | PREFIX="$HOME/$CACHE_BASENAME" |
| 14 | 14 | MCPU="baseline" |
| 15 | JOBS="-j$(nproc)" |
| 15 | 16 | |
| 16 | 17 | rm -rf $PREFIX |
| 17 | 18 | cd $HOME |
| ... | ... | @@ -49,21 +50,20 @@ cmake .. \ |
| 49 | 50 | -DCMAKE_BUILD_TYPE=Release \ |
| 50 | 51 | -DZIG_TARGET_TRIPLE="$TARGET" \ |
| 51 | 52 | -DZIG_TARGET_MCPU="$MCPU" \ |
| 52 | | -DZIG_STATIC=ON \ |
| 53 | | -GNinja |
| 53 | -DZIG_STATIC=ON |
| 54 | 54 | |
| 55 | 55 | # Now cmake will use zig as the C/C++ compiler. We reset the environment variables |
| 56 | 56 | # so that installation and testing do not get affected by them. |
| 57 | 57 | unset CC |
| 58 | 58 | unset CXX |
| 59 | 59 | |
| 60 | | ninja install |
| 60 | make $JOBS install |
| 61 | 61 | |
| 62 | 62 | # Here we rebuild zig but this time using the Zig binary we just now produced to |
| 63 | 63 | # build zig1.o rather than relying on the one built with stage0. See |
| 64 | 64 | # https://github.com/ziglang/zig/issues/6830 for more details. |
| 65 | 65 | cmake .. -DZIG_EXECUTABLE="$(pwd)/release/bin/zig" |
| 66 | | ninja install |
| 66 | make $JOBS install |
| 67 | 67 | |
| 68 | 68 | release/bin/zig build test -Denable-qemu -Denable-wasmtime |
| 69 | 69 | |