1
0
Fork 0

build: increase x86_64 image CPU baseline to Intel Core 2

This commit is contained in:
liushuyu 2022-06-07 19:19:16 -06:00
parent 7c40815fef
commit 947c145a32
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437
1 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,9 @@ git am "$TOPDIR"/../patches/*.patch
CFLAGS="-ftree-vectorize -flto" CFLAGS="-ftree-vectorize -flto"
if [[ "$(uname -m)" == "aarch64" ]]; then if [[ "$(uname -m)" == "aarch64" ]]; then
CFLAGS="$CFLAGS -march=armv8-a+crc+crypto" 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 fi
if [[ "$USE_CCACHE" != '0' ]]; then if [[ "$USE_CCACHE" != '0' ]]; then
echo '[+] Enabled ccache' echo '[+] Enabled ccache'
@ -19,7 +22,7 @@ fi
export CFLAGS export CFLAGS
export CXXFLAGS="$CFLAGS" export CXXFLAGS="$CFLAGS"
export LDFLAGS="-flto -fuse-linker-plugin" export LDFLAGS="-flto -fuse-linker-plugin -fuse-ld=gold"
mkdir -p build && cd build 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 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