| author | |
| committer | |
| log | c24c6fe21083f291c52810921a2c74ba9ba794ef |
| tree | 7e7bf05a92afa0d97f9d74e1b490703e0bea155a |
| parent | fc5209c139c4905ff697a664da5f4cc099184d7e |
See tracking issue #135464 files changed, 12 insertions(+), 48 deletions(-)
ci/linux/build-aarch64.sh+2-3| ... | ... | @@ -60,11 +60,10 @@ stage3-release/bin/zig build test docs \ |
| 60 | 60 | --zig-lib-dir "$(pwd)/../lib" |
| 61 | 61 | |
| 62 | 62 | # Look for HTML errors. |
| 63 | tidy --drop-empty-elements no -qe zig-cache/langref.html | |
| 63 | tidy --drop-empty-elements no -qe ../zig-cache/langref.html | |
| 64 | 64 | |
| 65 | 65 | # Produce the experimental std lib documentation. |
| 66 | mkdir -p "stage3-release/doc/std" | |
| 67 | 66 | stage3-release/bin/zig test ../lib/std/std.zig \ |
| 68 | -femit-docs=stage3-release/doc/std \ | |
| 67 | -femit-docs \ | |
| 69 | 68 | -fno-emit-bin \ |
| 70 | 69 | --zig-lib-dir "$(pwd)/../lib" |
ci/linux/build-tarballs.sh-37| ... | ... | @@ -12,43 +12,6 @@ WORKDIR="$(pwd)" |
| 12 | 12 | ARCH="$(uname -m)" |
| 13 | 13 | TARGET="$ARCH-linux-musl" |
| 14 | 14 | MCPU="baseline" |
| 15 | CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.11.0-dev.256+271cc52a1" | |
| 16 | PREFIX="$WORKDIR/deps/$CACHE_BASENAME" | |
| 17 | ZIG="$PREFIX/bin/zig" | |
| 18 | ||
| 19 | OLD_ZIG_VERSION="0.11.0-dev.256+271cc52a1" | |
| 20 | wget "https://ziglang.org/deps/$CACHE_BASENAME.tar.xz" | |
| 21 | tar xf "$CACHE_BASENAME.tar.xz" | |
| 22 | ||
| 23 | # Make the `zig version` number consistent. | |
| 24 | # This will affect the cmake command below. | |
| 25 | cd "$ZIGDIR" | |
| 26 | git config core.abbrev 9 | |
| 27 | git fetch --unshallow || true | |
| 28 | git fetch --tags | |
| 29 | ||
| 30 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | |
| 31 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | |
| 32 | ||
| 33 | mkdir "$REL_SRC_BUILD" | |
| 34 | cd "$REL_SRC_BUILD" | |
| 35 | cmake .. \ | |
| 36 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ | |
| 37 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | |
| 38 | -DCMAKE_BUILD_TYPE=Release \ | |
| 39 | -DZIG_TARGET_TRIPLE="$TARGET" \ | |
| 40 | -DZIG_TARGET_MCPU="$MCPU" \ | |
| 41 | -DZIG_STATIC=ON \ | |
| 42 | -GNinja | |
| 43 | ||
| 44 | # Now cmake will use zig as the C/C++ compiler. We reset the environment variables | |
| 45 | # so that installation and testing do not get affected by them. | |
| 46 | unset CC | |
| 47 | unset CXX | |
| 48 | ||
| 49 | ninja install | |
| 50 | ||
| 51 | ZIG_VERSION="$(stage3-release/bin/zig version)" | |
| 52 | 15 | |
| 53 | 16 | git clone https://github.com/ziglang/zig-bootstrap |
| 54 | 17 | BOOTSTRAP_SRC="$WORKDIR/zig-bootstrap" |
ci/linux/build-x86_64-debug.sh+8-5| ... | ... | @@ -51,7 +51,9 @@ stage3-debug/bin/zig fmt --check .. \ |
| 51 | 51 | # simultaneously test building self-hosted without LLVM and with 32-bit arm |
| 52 | 52 | stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf |
| 53 | 53 | |
| 54 | stage3-debug/bin/zig build test docs \ | |
| 54 | # building docs disabled due to: | |
| 55 | # https://github.com/ziglang/zig/issues/13546 | |
| 56 | stage3-debug/bin/zig build test \ | |
| 55 | 57 | -fqemu \ |
| 56 | 58 | -fwasmtime \ |
| 57 | 59 | -Dstatic-llvm \ |
| ... | ... | @@ -59,12 +61,13 @@ stage3-debug/bin/zig build test docs \ |
| 59 | 61 | --search-prefix "$PREFIX" \ |
| 60 | 62 | --zig-lib-dir "$(pwd)/../lib" |
| 61 | 63 | |
| 62 | # Look for HTML errors. | |
| 63 | tidy --drop-empty-elements no -qe zig-cache/langref.html | |
| 64 | # langref disabled due to: | |
| 65 | # https://github.com/ziglang/zig/issues/13546 | |
| 66 | ## Look for HTML errors. | |
| 67 | #tidy --drop-empty-elements no -qe ../zig-cache/langref.html | |
| 64 | 68 | |
| 65 | 69 | # Produce the experimental std lib documentation. |
| 66 | mkdir -p "stage3-debug/doc/std" | |
| 67 | 70 | stage3-debug/bin/zig test ../lib/std/std.zig \ |
| 68 | -femit-docs=stage3-debug/doc/std \ | |
| 71 | -femit-docs \ | |
| 69 | 72 | -fno-emit-bin \ |
| 70 | 73 | --zig-lib-dir "$(pwd)/../lib" |
ci/linux/build-x86_64-release.sh+2-3| ... | ... | @@ -60,12 +60,11 @@ stage3-release/bin/zig build test docs \ |
| 60 | 60 | --zig-lib-dir "$(pwd)/../lib" |
| 61 | 61 | |
| 62 | 62 | # Look for HTML errors. |
| 63 | tidy --drop-empty-elements no -qe zig-cache/langref.html | |
| 63 | tidy --drop-empty-elements no -qe ../zig-cache/langref.html | |
| 64 | 64 | |
| 65 | 65 | # Produce the experimental std lib documentation. |
| 66 | mkdir -p "stage3-release/doc/std" | |
| 67 | 66 | stage3-release/bin/zig test ../lib/std/std.zig \ |
| 68 | -femit-docs=stage3-release/doc/std \ | |
| 67 | -femit-docs \ | |
| 69 | 68 | -fno-emit-bin \ |
| 70 | 69 | --zig-lib-dir "$(pwd)/../lib" |
| 71 | 70 |