1

launcher: use -mcpu=baseline

This log message has been seen in a Github Actions worker:

      running <...>/c++ failed: signal: illegal instruction (core dumped)

I conclude that the launcher was compiled on a newer CPU than used on
the worker at the time.

Reported-by: mp@edgeless.systems

Fixes #22
This commit is contained in:
Motiejus Jakštys
2023-03-21 12:43:08 +02:00
committed by Motiejus Jakštys
parent 765fd04587
commit cb46744cb8
2 changed files with 15 additions and 1 deletions

View File

@@ -16,7 +16,12 @@ for target in \
x86_64-macos-none \
x86_64-windows-gnu
do
$ZIG build-exe -fno-emit-bin -target $target toolchain/launcher.zig
if [[ $target == aarch64-macos-none ]]; then
mcpu=apple_a14
else
mcpu=baseline
fi
$ZIG build-exe -fno-emit-bin -target $target -mcpu=$mcpu toolchain/launcher.zig
done
echo "--- zig fmt --check toolchain/launcher.zig"