Merge topic 'android_clang_asm'

524f5ee1 Android: Set compiler target platform when compiling ASM with Clang
This commit is contained in:
Brad King
2017-01-11 09:58:37 -05:00
committed by CMake Topic Stage
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
include(Platform/Android-Clang)
__android_compiler_clang(ASM)

View File

@@ -35,7 +35,9 @@ include(Platform/Android-Common)
include(Platform/Android/abi-${CMAKE_ANDROID_ARCH_ABI}-Clang)
macro(__android_compiler_clang lang)
__android_compiler_common(${lang})
if(NOT "x${lang}" STREQUAL "xASM")
__android_compiler_common(${lang})
endif()
if(NOT CMAKE_${lang}_COMPILER_TARGET)
set(CMAKE_${lang}_COMPILER_TARGET "${_ANDROID_ABI_CLANG_TARGET}")
endif()