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"
1616
1717export 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
1928mkdir build-release
2029cd build-release
2130cmake .. \
2231 -DCMAKE_INSTALL_PREFIX="stage3-release" \
2332 -DCMAKE_PREFIX_PATH="$PREFIX" \
2433 -DCMAKE_BUILD_TYPE=Release \
25 -DCMAKE_C_COMPILER="$ZIG;cc;-target;$TARGET;-mcpu=$MCPU" \
26 -DCMAKE_CXX_COMPILER="$ZIG;c++;-target;$TARGET;-mcpu=$MCPU" \
2734 -DZIG_TARGET_TRIPLE="$TARGET" \
2835 -DZIG_TARGET_MCPU="$MCPU" \
2936 -DZIG_STATIC=ON \
3037 -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
3244ninja install
3345
3446# TODO: add -fqemu back to this line