From 947c145a3226908a89cb1eef6652f91e137427ba Mon Sep 17 00:00:00 2001 From: liushuyu Date: Tue, 7 Jun 2022 19:19:16 -0600 Subject: [PATCH] build: increase x86_64 image CPU baseline to Intel Core 2 --- .ci/build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.ci/build.sh b/.ci/build.sh index dbe51cd..aacc744 100755 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -9,6 +9,9 @@ git am "$TOPDIR"/../patches/*.patch CFLAGS="-ftree-vectorize -flto" if [[ "$(uname -m)" == "aarch64" ]]; then CFLAGS="$CFLAGS -march=armv8-a+crc+crypto" +elif [[ "$(uname -m)" == "x86_64" ]]; then + # those three of you still using Prescott should just compile this yourselves + CFLAGS="$CFLAGS -march=core2 -mtune=intel" fi if [[ "$USE_CCACHE" != '0' ]]; then echo '[+] Enabled ccache' @@ -19,7 +22,7 @@ fi export CFLAGS export CXXFLAGS="$CFLAGS" -export LDFLAGS="-flto -fuse-linker-plugin" +export LDFLAGS="-flto -fuse-linker-plugin -fuse-ld=gold" mkdir -p build && cd build cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DENABLE_SDL2=OFF -DENABLE_QT=OFF -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=OFF -DUSE_DISCORD_PRESENCE=OFF -DENABLE_FFMPEG_VIDEO_DUMPER=OFF