File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,15 @@ foreach(target ${LLVM_RUNTIME_TARGETS})
47
47
set (RUNTIMES_${target}_CMAKE_SYSTEM_NAME Windows CACHE STRING "" )
48
48
elseif (${target} MATCHES linux-android )
49
49
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 ()
50
55
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 "" )
51
59
endif ()
52
60
set (RUNTIMES_${target}_CMAKE_BUILD_TYPE Release CACHE STRING "" )
53
61
set (RUNTIMES_${target}_COMPILER_RT_BUILD_BUILTINS YES CACHE BOOL "" )
You can’t perform that action at this time.
0 commit comments