mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[cmake,android] check compiler flags
Check -mfloat-abi=softfp supported before use. This workaround is for older NDK versions that do not properly set this in the toolchain file. Newer NDK versions changed compiler no longer supporting that flag.
This commit is contained in:
@@ -422,8 +422,13 @@ if(ANDROID)
|
||||
endif()
|
||||
|
||||
if(ANDROID_ABI STREQUAL arm64-v8a)
|
||||
# https://github.com/android/ndk/issues/910
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfloat-abi=softfp")
|
||||
include (CheckCCompilerFlag)
|
||||
check_c_compiler_flag("-mfloat-abi=softfp" ABI_SOFTFP_SUPPORTED)
|
||||
|
||||
if (ABI_SOFTFP_SUPPORTED)
|
||||
# https://github.com/android/ndk/issues/910
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfloat-abi=softfp")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
||||
|
||||
Reference in New Issue
Block a user