scripts: enable LTO for Linux builds too

This commit is contained in:
Alibek Omarov 2023-05-14 09:49:39 +03:00
parent 2378331e47
commit fa0e7e4369
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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