Skip to content

Commit a875b1f

Browse files
committed
Enable LTO in GHA builds
1 parent dce24b0 commit a875b1f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ pre_build()
149149
RELEASE_CRASH_REPORTING=OFF
150150
HAVOK=OFF
151151
TESTING=OFF
152+
USE_LTO=ON
152153
SIGNING=()
153154
if [[ "$variant" != *OS ]]
154155
then
@@ -170,6 +171,7 @@ pre_build()
170171
# RELEASE_CRASH_REPORTING is tuned on unconditionaly, this is fine but not for Linux as of now (due to missing breakpad/crashpad support)
171172
RELEASE_CRASH_REPORTING=OFF
172173
HAVOK=OFF
174+
USE_LTO=OFF
173175
fi
174176

175177
if $build_tests
@@ -202,6 +204,7 @@ pre_build()
202204
"$autobuild" configure --quiet -c $variant \
203205
${eval_autobuild_configure_parameters:---} \
204206
-DLL_TESTS:BOOL="$TESTING" \
207+
-DUSE_LTO:BOOL="$USE_LTO" \
205208
-DPACKAGE:BOOL=ON \
206209
-DHAVOK:BOOL="$HAVOK" \
207210
-DRELEASE_CRASH_REPORTING:BOOL="$RELEASE_CRASH_REPORTING" \

0 commit comments

Comments
 (0)