We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a73e477 commit 82abe2eCopy full SHA for 82abe2e
CMakeLists.txt
@@ -13,8 +13,9 @@ message("Building ${COMPILE_ID} version ${MOD_VERSION} with ID ${MOD_ID} ${CMAKE
13
14
# Enable interprocedural optimization (LTO) only for Release builds
15
if(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
16
+ message("Using optimized build")
17
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
- add_compile_options(-O3)
18
+ add_compile_options(-O3 -flto)
19
20
set(TRACKS_RS_LINK_PATH ${CMAKE_CURRENT_SOURCE_DIR}/tracks_rs_link/target/aarch64-linux-android/release/)
21
else()
0 commit comments