authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-11-14 17:39:07-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-11-21 20:16:08-07:00
logc822da712110fcb11b21d0fef0dd2d82b2f876a4
tree2ca77580d68a14b570381e9882e0fef5ef5f2431
parent670b4c5c02edc8fdfb4a73e72388ac0a140f8856

CI: aarch64-linux: support older cmake


1 files changed, 14 insertions(+), 2 deletions(-)

ci/linux/build-aarch64.sh+14-2
...@@ -16,19 +16,31 @@ ZIG="$PREFIX/bin/zig"...@@ -16,19 +16,31 @@ ZIG="$PREFIX/bin/zig"
1616
17export PATH="$HOME/deps/wasmtime-v2.0.2-aarch64-linux:$PATH"17export PATH="$HOME/deps/wasmtime-v2.0.2-aarch64-linux:$PATH"
1818
19# Make the `zig version` number consistent.
20# This will affect the cmake command below.
21git config core.abbrev 9
22git fetch --unshallow || true
23git fetch --tags
24
25export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"
26export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
27
19mkdir build-release28mkdir build-release
20cd build-release29cd build-release
21cmake .. \30cmake .. \
22 -DCMAKE_INSTALL_PREFIX="stage3-release" \31 -DCMAKE_INSTALL_PREFIX="stage3-release" \
23 -DCMAKE_PREFIX_PATH="$PREFIX" \32 -DCMAKE_PREFIX_PATH="$PREFIX" \
24 -DCMAKE_BUILD_TYPE=Release \33 -DCMAKE_BUILD_TYPE=Release \
25 -DCMAKE_C_COMPILER="$ZIG;cc;-target;$TARGET;-mcpu=$MCPU" \
26 -DCMAKE_CXX_COMPILER="$ZIG;c++;-target;$TARGET;-mcpu=$MCPU" \
27 -DZIG_TARGET_TRIPLE="$TARGET" \34 -DZIG_TARGET_TRIPLE="$TARGET" \
28 -DZIG_TARGET_MCPU="$MCPU" \35 -DZIG_TARGET_MCPU="$MCPU" \
29 -DZIG_STATIC=ON \36 -DZIG_STATIC=ON \
30 -GNinja37 -GNinja
3138
39# Now cmake will use zig as the C/C++ compiler. We reset the environment variables
40# so that installation and testing do not get affected by them.
41unset CC
42unset CXX
43
32ninja install44ninja install
3345
34# TODO: add -fqemu back to this line46# TODO: add -fqemu back to this line