Fixed slow compilation on Android, -O1 does not help

This commit is contained in:
pelya
2021-02-14 00:31:12 +02:00
parent 042e982587
commit da2947e5e3

View File

@@ -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)