Enable LTO by an option.

This commit is contained in:
John Preston
2026-01-14 10:39:20 +04:00
committed by 23rd
parent 1696e4495a
commit fa190a74da
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ if %AlphaVersion% neq 0 (
cd "%HomePath%"
call configure.bat
call configure.bat -DDESKTOP_APP_ENABLE_LTO=ON
if %errorlevel% neq 0 goto error
cd "%SolutionPath%"
+1 -1
View File
@@ -255,7 +255,7 @@ if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "macstore" ]; then
rm -rf "$ReleasePath/$BinaryName.app/Contents/_CodeSignature"
rm -rf "$ReleasePath/Updater"
./configure.sh -D DESKTOP_APP_MAC_ARCH="arm64;x86_64"
./configure.sh -D DESKTOP_APP_MAC_ARCH="arm64;x86_64" -DDESKTOP_APP_ENABLE_LTO=ON
cd $ProjectPath
cmake --build . --config Release --target Telegram
+1 -1
View File
@@ -26,7 +26,7 @@ if [ ! -f "/usr/bin/cmake" ]; then
ln -s cmake3 /usr/bin/cmake
fi
./configure.sh
./configure.sh -DDESKTOP_APP_ENABLE_LTO=ON
cd $ProjectPath
cmake --build . --config Release --target Telegram
+1 -1
Submodule cmake updated: ece5903560...ee891d4361