mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
llvm: disable extra targets for android
explicitly specify native target, llvm determines wrongly if cross compiler used
This commit is contained in:
parent
26ce38a4ac
commit
2c122a4401
12
3rdparty/llvm/CMakeLists.txt
vendored
12
3rdparty/llvm/CMakeLists.txt
vendored
@ -5,7 +5,17 @@ if(WITH_LLVM)
|
|||||||
if(BUILD_LLVM)
|
if(BUILD_LLVM)
|
||||||
message(STATUS "LLVM will be built from the submodule.")
|
message(STATUS "LLVM will be built from the submodule.")
|
||||||
|
|
||||||
set(LLVM_TARGETS_TO_BUILD "AArch64;X86" CACHE STRING "Semicolon-separated list of targets to build, or \"all\".")
|
if (ANDROID)
|
||||||
|
if (COMPILER_ARM)
|
||||||
|
set(LLVM_TARGETS_TO_BUILD "AArch64" CACHE STRING "Semicolon-separated list of targets to build, or \"all\".")
|
||||||
|
set(LLVM_TARGET_ARCH "${CMAKE_SYSTEM_PROCESSOR}-none-linux-android${ANDROID_NATIVE_API_LEVEL}" CACHE STRING "")
|
||||||
|
else()
|
||||||
|
set(LLVM_TARGETS_TO_BUILD "X86" CACHE STRING "Semicolon-separated list of targets to build, or \"all\".")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
set(LLVM_TARGETS_TO_BUILD "AArch64;X86" CACHE STRING "Semicolon-separated list of targets to build, or \"all\".")
|
||||||
|
endif()
|
||||||
|
|
||||||
option(LLVM_BUILD_RUNTIME "Build the LLVM runtime libraries." OFF)
|
option(LLVM_BUILD_RUNTIME "Build the LLVM runtime libraries." OFF)
|
||||||
option(LLVM_BUILD_TOOLS "Build the LLVM tools. If OFF, just generate build targets." OFF)
|
option(LLVM_BUILD_TOOLS "Build the LLVM tools. If OFF, just generate build targets." OFF)
|
||||||
option(LLVM_INCLUDE_BENCHMARKS "Generate benchmark targets. If OFF, benchmarks can't be built." OFF)
|
option(LLVM_INCLUDE_BENCHMARKS "Generate benchmark targets. If OFF, benchmarks can't be built." OFF)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user