diff options
author | sylvarant <adriaan.larmuseau@gmail.com> | 2019-03-19 09:14:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-19 09:14:01 +0800 |
commit | 2418ad6a81eab11876d30c45da4129dd2b3acf20 (patch) | |
tree | 35302cf30abd2673b4539e7971620175292c87e9 | |
parent | 7c56a88348c6a16f334a8b64a13e8b0f5b5cefe9 (diff) | |
download | tangerine-mcl-2418ad6a81eab11876d30c45da4129dd2b3acf20.tar.gz tangerine-mcl-2418ad6a81eab11876d30c45da4129dd2b3acf20.tar.zst tangerine-mcl-2418ad6a81eab11876d30c45da4129dd2b3acf20.zip |
Detect arm CPU in CMake
Need CMake to build on arm, in the same way that the regular Makefile does
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bf54175..aaa0a8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,10 @@ else() add_definitions(-DMCL_USE_LLVM=1) set(SRCS ${SRCS} src/asm/aarch64.s) set(CPU arch64) + elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm") + add_definitions(-DMCL_USE_LLVM=1) + set(SRCS ${SRCS} src/asm/arm.s) + set(CPU arm) elseif(APPLE) add_definitions(-DMCL_USE_LLVM=1) set(SRCS ${SRCS} src/asm/x86-64mac.s src/asm/x86-64mac.bmi2.s) |