mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
Android: Set compiler target platform when compiling ASM with Clang
Closes: #16535
This commit is contained in:
committed by
Brad King
parent
c628fd2fab
commit
524f5ee186
2
Modules/Platform/Android-Clang-ASM.cmake
Normal file
2
Modules/Platform/Android-Clang-ASM.cmake
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/Android-Clang)
|
||||
__android_compiler_clang(ASM)
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user