aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorNanoAkron <nanoakron@users.noreply.github.com>2016-09-17 22:11:01 +0100
committerNanoAkron <nanoakron@users.noreply.github.com>2016-09-17 22:13:39 +0100
commitd76aec61210e2cc6eef08dadf59a220ec7c94751 (patch)
treeb98d87c171fffaf6136a2d029800fc9357e34af0 /CMakeLists.txt
parentMerge pull request #1084 (diff)
downloadmonero-d76aec61210e2cc6eef08dadf59a220ec7c94751.tar.xz
Add +crypto flag for ARMv8-a
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0c813b867..63c442769 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -379,8 +379,12 @@ else()
message(STATUS "AES support enabled")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -maes")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes")
- elseif(ARM) #NB ARMv8 DOES support AES, but not yet coded
- message(STATUS "AES support disabled (not available on ARM)")
+ 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")
else()
message(STATUS "AES support disabled")
endif()