diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-05-21 14:22:39 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-21 15:23:07 +0200 |
commit | bcfde43849d1b7226812ec7c1f39fadd9d3d9a03 (patch) | |
tree | e88a2179ef27195f8b5198ffebd4b318464c5449 /Toolchain | |
parent | bd1bdbe91bfe4e127d7a344bc42f1042c8245baa (diff) | |
download | serenity-bcfde43849d1b7226812ec7c1f39fadd9d3d9a03.zip |
Toolchain: Replace the -march=native flag with -mtune=native
This ensures inter-machine compatibility by not emitting any processor
specific instructions. This fixes the issue raised by the non AVX-512
supporting GitHub actions runners.
Diffstat (limited to 'Toolchain')
-rwxr-xr-x | Toolchain/BuildIt.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Toolchain/BuildIt.sh b/Toolchain/BuildIt.sh index 9aa4a1dbdd..90a86f3373 100755 --- a/Toolchain/BuildIt.sh +++ b/Toolchain/BuildIt.sh @@ -31,8 +31,8 @@ SYSTEM_NAME="$(uname -s)" # We *most definitely* don't need debug symbols in the linker/compiler. # This cuts the uncompressed size from 1.2 GiB per Toolchain down to about 120 MiB. # Hence, this might actually cause marginal speedups, although the point is to not waste space as blatantly. -export CFLAGS="-g0 -O2 -march=native" -export CXXFLAGS="-g0 -O2 -march=native" +export CFLAGS="-g0 -O2 -mtune=native" +export CXXFLAGS="-g0 -O2 -mtune=native" if [ "$SYSTEM_NAME" = "OpenBSD" ]; then MAKE=gmake |