mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 21:03:28 +01:00
cmake: disable AES on ARM
On ARM, gcc fails with 'unknown argument' if passed '-maes'.
This commit is contained in:
parent
804b1bc197
commit
c6501607f3
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user