Android: Set compiler target platform when compiling ASM with Clang

Closes: #16535
This commit is contained in:
Florent Castelli
2017-01-06 23:33:37 +01:00
committed by Brad King
parent c628fd2fab
commit 524f5ee186
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()