diff --git a/scripts/flatpak/su.xash.Engine.Compat.i386.yml b/scripts/flatpak/su.xash.Engine.Compat.i386.yml index 5feeb369..8aedcd48 100644 --- a/scripts/flatpak/su.xash.Engine.Compat.i386.yml +++ b/scripts/flatpak/su.xash.Engine.Compat.i386.yml @@ -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 diff --git a/scripts/gha/build_linux.sh b/scripts/gha/build_linux.sh index 2f3b40c5..a6586945 100755 --- a/scripts/gha/build_linux.sh +++ b/scripts/gha/build_linux.sh @@ -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