mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00: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
1 changed files with 3 additions and 1 deletions
|
@ -339,10 +339,12 @@ else()
|
||||||
|
|
||||||
option(NO_AES "Explicitly disable AES support" ${NO_AES})
|
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")
|
message(STATUS "AES support enabled")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -maes")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -maes")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes")
|
||||||
|
elseif(ARM7 OR ARM6)
|
||||||
|
message(STATUS "AES support disabled (not available on ARM)")
|
||||||
else()
|
else()
|
||||||
message(STATUS "AES support disabled")
|
message(STATUS "AES support disabled")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue