Skip to content

Commit 82abe2e

Browse files
committed
Enable LTO
1 parent a73e477 commit 82abe2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ message("Building ${COMPILE_ID} version ${MOD_VERSION} with ID ${MOD_ID} ${CMAKE
1313

1414
# Enable interprocedural optimization (LTO) only for Release builds
1515
if(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
16+
message("Using optimized build")
1617
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
17-
add_compile_options(-O3)
18+
add_compile_options(-O3 -flto)
1819

1920
set(TRACKS_RS_LINK_PATH ${CMAKE_CURRENT_SOURCE_DIR}/tracks_rs_link/target/aarch64-linux-android/release/)
2021
else()

0 commit comments

Comments
 (0)