File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,12 @@ if(ENABLE_LTO)
3535 check_ipo_supported(RESULT ipo_supported OUTPUT error)
3636 if (ipo_supported)
3737 if (ANDROID AND "${CMAKE_ANDROID_ARCH_ABI} " STREQUAL "armeabi-v7a" )
38- if ("${CMAKE_ANDROID_ARCH_ABI} " STREQUAL "armeabi-v7a" )
39- # clang android LTO bug (only armv7 affected)
40- # https://stackoverflow.com/questions/56238019/linker-error-when-enabling-link-time-optimization-in-ndk
41- # Fixed in newer clang versions: https://reviews.llvm.org/D79919
42- # But fixed here to keep supported android api level as low as possible
43- # Tested with android ndk v20.0.5594570 (android api 29)
44- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -flto=full" )
45- endif ()
38+ # clang android LTO bug (only armv7 affected)
39+ # https://stackoverflow.com/questions/56238019/linker-error-when-enabling-link-time-optimization-in-ndk
40+ # Fixed in newer clang versions: https://reviews.llvm.org/D79919
41+ # But fixed here to keep supported android api level as low as possible
42+ # Tested with android ndk v20.0.5594570 (android api 29)
43+ set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -flto=full" )
4644 else ()
4745 set_property (TARGET ddsc PROPERTY INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE )
4846 set_property (TARGET ddsc PROPERTY INTERPROCEDURAL_OPTIMIZATION_MINSIZEREL TRUE )
You can’t perform that action at this time.
0 commit comments