aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanoAkron <nanoakron@users.noreply.github.com>2016-09-18 03:26:18 +0100
committerNanoAkron <nanoakron@users.noreply.github.com>2016-09-18 03:26:18 +0100
commit7f00a4abf41456dea6c51c0797f899901efb4877 (patch)
treed18b66a13089532bcd5d33c131d7df443ab10bde
parentUpdated +crypto option for ARMv8 to modify ${ARCH} instead (diff)
downloadmonero-7f00a4abf41456dea6c51c0797f899901efb4877.tar.xz
+crypto for ARMv8 now tests and modifies ${ARCH$
-rw-r--r--CMakeLists.txt15
1 files changed, 3 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fe75396cc..474065acf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,7 +63,7 @@ if (NOT ARCH OR ARCH STREQUAL "" OR ARCH STREQUAL "native" OR ARCH STREQUAL "def
else()
set(ARCH_ID "${ARCH}")
endif()
-#string(TOLOWER ${ARCH_ID} ARM_ID)
+string(TOLOWER ${ARCH_ID} ARM_ID) #is this used anywhere?
string(SUBSTRING ${ARCH_ID} 0 3 ARM_TEST)
if (ARM_TEST STREQUAL "arm")
set(ARM 1)
@@ -372,14 +372,6 @@ else()
message(STATUS "AES support enabled")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -maes")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes")
-<<<<<<< Updated upstream
- elseif(ARM6 OR ARM7)
- message(STATUS "AES support disabled (not available on ARMv6 or ARMv7)")
- elseif(ARM8)
- message(STATUS "AES support enabled for ARMv8-A")
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv8-a+crypto")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv8-a+crypto")
-=======
elseif(ARM6)
message(STATUS "AES support not available on ARMv6")
elseif(ARM7)
@@ -387,12 +379,11 @@ else()
elseif(ARM8)
CHECK_CXX_ACCEPTS_FLAG("-march=${ARCH}+crypto" ARCH_PLUS_CRYPTO)
if(ARCH_PLUS_CRYPTO)
- message(STATUS "Cryptograpy extensions enabled for ARMv8")
+ message(STATUS "Crypto extensions enabled for ARMv8")
set(ARCH_FLAG "-march=${ARCH}+crypto")
else()
- message(STATUS "Cryptograpy extensions unavailable on your ARMv8 device")
+ message(STATUS "Crypto extensions unavailable on your ARMv8 device")
endif()
->>>>>>> Stashed changes
else()
message(STATUS "AES support disabled")
endif()