diff options
author | redfish <redfish@galactica.pw> | 2016-06-21 20:08:10 -0400 |
---|---|---|
committer | redfish <redfish@galactica.pw> | 2016-06-21 22:32:55 -0400 |
commit | c6501607f3ba712f10864192f1c3c62a5f25e7bf (patch) | |
tree | 919cd2bb741d5a37223ef12c5ce758d4951d4d28 /CMakeLists.txt | |
parent | cmake: initialize ARCH for native builds (diff) | |
download | monero-c6501607f3ba712f10864192f1c3c62a5f25e7bf.tar.xz |
cmake: disable AES on ARM
On ARM, gcc fails with 'unknown argument' if passed '-maes'.
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1770b229f..f7c932585 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -339,10 +339,12 @@ else() option(NO_AES "Explicitly disable AES support" ${NO_AES}) - if (NOT NO_AES) + if(NOT NO_AES AND NOT (ARM6 OR ARM7)) message(STATUS "AES support enabled") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -maes") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes") + elseif(ARM7 OR ARM6) + message(STATUS "AES support disabled (not available on ARM)") else() message(STATUS "AES support disabled") endif() |