Skip to content

Commit 9453db6

Browse files
committed
fixups
1 parent 4c9a444 commit 9453db6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cmake/caches/Windows-x86_64.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,15 @@ foreach(target ${LLVM_RUNTIME_TARGETS})
4747
set(RUNTIMES_${target}_CMAKE_SYSTEM_NAME Windows CACHE STRING "")
4848
elseif(${target} MATCHES linux-android)
4949
set(RUNTIMES_${target}_CMAKE_SYSTEM_NAME Android CACHE STRING "")
50+
if(${target} MATCHES aarch64)
51+
set(RUNTIMES_${target}_CMAKE_ANDROID_ARCH_ABI arm64-v8a CACHE STRING "")
52+
else()
53+
set(RUNTIMES_${target}_CMAKE_ANDROID_ARCH_ABI x86_64 CACHE STRING "")
54+
endif()
5055
set(RUNTIMES_${target}_CMAKE_ANDROID_NDK $ENV{NDKPATH} CACHE PATH "")
56+
set(RUNTIMES_${target}_CMAKE_ANDROID_API 21 CACHE STRING "")
57+
set(RUNTIMES_${target}_CMAKE_C_COMPILER_TARGET "${target}21" CACHE STRING "")
58+
set(RUNTIMES_${target}_CMAKE_CXX_COMPILER_TARGET "${target}21" CACHE STRING "")
5159
endif()
5260
set(RUNTIMES_${target}_CMAKE_BUILD_TYPE Release CACHE STRING "")
5361
set(RUNTIMES_${target}_COMPILER_RT_BUILD_BUILTINS YES CACHE BOOL "")

0 commit comments

Comments
 (0)