Browse Source

scripts: enable LTO for Linux builds too

pull/2/head
Alibek Omarov 1 year ago
parent
commit
fa0e7e4369
  1. 2
      scripts/flatpak/su.xash.Engine.Compat.i386.yml
  2. 4
      scripts/gha/build_linux.sh

2
scripts/flatpak/su.xash.Engine.Compat.i386.yml

@ -78,7 +78,7 @@ modules: @@ -78,7 +78,7 @@ modules:
build-options: *compat-i386-opts
build-commands:
- |
python waf configure -T release --enable-all-renderers --enable-packaging --prefix=/app --libdir=/app/lib32
python waf configure -T release --enable-all-renderers --enable-packaging --enable-lto --prefix=/app --libdir=/app/lib32
python waf build
python waf install --destdir=/
mkdir -p /app/bin

4
scripts/gha/build_linux.sh

@ -50,9 +50,9 @@ build_engine() @@ -50,9 +50,9 @@ build_engine()
fi
if [ "$1" = "dedicated" ]; then
./waf configure -T release -d $AMD64 --enable-tests || die_configure
./waf configure -T release -d $AMD64 --enable-tests --enable-lto || die_configure
elif [ "$1" = "full" ]; then
./waf configure --sdl2=SDL2_linux -T release --enable-stb $AMD64 --enable-utils --enable-tests || die_confgure
./waf configure --sdl2=SDL2_linux -T release --enable-stb $AMD64 --enable-utils --enable-tests --enable-lto || die_confgure
else
die
fi

Loading…
Cancel
Save