Fixed slow compilation on Android, -O1 does not help
This commit is contained in:
@@ -238,7 +238,9 @@ if(ANDROID)
|
||||
${EXPAT_LIBRARY}
|
||||
)
|
||||
# A bug in Android NDK r22: https://github.com/android/ndk/issues/1418
|
||||
set_source_files_properties(${CMAKE_SOURCE_DIR}/src/settings.cpp PROPERTIES COMPILE_FLAGS "-O1")
|
||||
if(ANDROID_ABI EQUAL "armeabi-v7a" OR ANDROID_ABI EQUAL "x86")
|
||||
set_source_files_properties(${CMAKE_SOURCE_DIR}/src/settings.cpp PROPERTIES COMPILE_FLAGS "-O0")
|
||||
endif(ANDROID_ABI)
|
||||
endif(ANDROID)
|
||||
|
||||
if(APPLE)
|
||||
|
||||
Reference in New Issue
Block a user