mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Enable LTO by an option.
This commit is contained in:
@@ -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%"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user