mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +00:00
Allow overriding the location of C/C++ compilers in Android CMake build.
Patch by Greg Fitzgerald. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182831 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5300869256
commit
d86a66da78
@ -11,8 +11,15 @@
|
||||
# make <target>
|
||||
|
||||
SET(CMAKE_SYSTEM_NAME Linux)
|
||||
SET(CMAKE_C_COMPILER ${CMAKE_BINARY_DIR}/../bin/clang)
|
||||
SET(CMAKE_CXX_COMPILER ${CMAKE_BINARY_DIR}/../bin/clang++)
|
||||
|
||||
IF(NOT CMAKE_C_COMPILER)
|
||||
SET(CMAKE_C_COMPILER ${CMAKE_BINARY_DIR}/../bin/clang)
|
||||
ENDIF()
|
||||
|
||||
IF(NOT CMAKE_CXX_COMPILER)
|
||||
SET(CMAKE_CXX_COMPILER ${CMAKE_BINARY_DIR}/../bin/clang++)
|
||||
ENDIF()
|
||||
|
||||
SET(ANDROID "1" CACHE STRING "ANDROID" FORCE)
|
||||
|
||||
SET(ANDROID_COMMON_FLAGS "-target arm-linux-androideabi --sysroot=${LLVM_ANDROID_TOOLCHAIN_DIR}/sysroot -B${LLVM_ANDROID_TOOLCHAIN_DIR} -mllvm -arm-enable-ehabi")
|
||||
|
Loading…
x
Reference in New Issue
Block a user