aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt4
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()