mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Add +crypto flag for ARMv8-a
This commit is contained in:
parent
77224bbf48
commit
d76aec6121
1 changed files with 6 additions and 2 deletions
|
@ -379,8 +379,12 @@ else()
|
||||||
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(ARM) #NB ARMv8 DOES support AES, but not yet coded
|
elseif(ARM6 OR ARM7)
|
||||||
message(STATUS "AES support disabled (not available on ARM)")
|
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()
|
else()
|
||||||
message(STATUS "AES support disabled")
|
message(STATUS "AES support disabled")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue