mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
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.
This commit is contained in:
parent
bd1bdbe91b
commit
bcfde43849
Notes:
sideshowbarker
2024-07-18 17:37:58 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/bcfde43849d Pull-request: https://github.com/SerenityOS/serenity/pull/7346 Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue