mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Move LTCG/LTO enablement into the build scripts
This commit is contained in:
1 parent
adfc972371
commit
81f20cdb66
3 files changed
+10
-15
No files matched your search
@@ -154,6 +154,11 @@ mkdir %BUILD_FOLDER%
|
||||
mkdir %INSTALLER_FOLDER%
|
||||
mkdir %SYMBOLS_FOLDER%
|
||||
|
||||
rem Enable LTCG for official builds
|
||||
set CFLAGS=/GL
|
||||
set CXXFLAGS=/GL
|
||||
set LDFLAGS=/LTCG
|
||||
|
||||
echo Configuring the project
|
||||
pushd %BUILD_FOLDER%
|
||||
%QMAKE_CMD% %SOURCE_ROOT%\moonlight-qt.pro
|
||||
|
||||
@@ -41,6 +41,11 @@ mkdir $BUILD_ROOT
|
||||
mkdir $BUILD_FOLDER
|
||||
mkdir $INSTALLER_FOLDER
|
||||
|
||||
# Enable LTO for official builds
|
||||
export CFLAGS=-flto=thin
|
||||
export CXXFLAGS=-flto=thin
|
||||
export LDFLAGS=-flto=thin
|
||||
|
||||
echo Configuring the project
|
||||
pushd $BUILD_FOLDER
|
||||
qmake $SOURCE_ROOT/moonlight-qt.pro QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64" || fail "Qmake failed!"
|
||||
|
||||
Reference in new issue
Block a user