mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 16:27:39 +00:00
Merge pull request #8117
505b382
cmake: enable build on riscv{64, 32} (Xeonacid)
This commit is contained in:
commit
c1e7e97cea
1 changed files with 13 additions and 1 deletions
|
@ -325,6 +325,16 @@ if(ARCH_ID STREQUAL "s390x")
|
||||||
set(S390X 1)
|
set(S390X 1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(ARCH_ID STREQUAL "riscv64")
|
||||||
|
set(RISCV 1)
|
||||||
|
set(RISCV64 1)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(ARCH_ID STREQUAL "riscv32")
|
||||||
|
set(RISCV 1)
|
||||||
|
set(RISCV32 1)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(WIN32 OR ARM OR PPC64LE OR PPC64 OR PPC)
|
if(WIN32 OR ARM OR PPC64LE OR PPC64 OR PPC)
|
||||||
set(OPT_FLAGS_RELEASE "-O2")
|
set(OPT_FLAGS_RELEASE "-O2")
|
||||||
else()
|
else()
|
||||||
|
@ -736,7 +746,7 @@ else()
|
||||||
message(STATUS "AES support explicitly disabled")
|
message(STATUS "AES support explicitly disabled")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNO_AES")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNO_AES")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNO_AES")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNO_AES")
|
||||||
elseif(NOT ARM AND NOT PPC64LE AND NOT PPC64 AND NOT PPC AND NOT S390X)
|
elseif(NOT ARM AND NOT PPC64LE AND NOT PPC64 AND NOT PPC AND NOT S390X AND NOT RISCV)
|
||||||
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")
|
||||||
|
@ -744,6 +754,8 @@ else()
|
||||||
message(STATUS "AES support not available on POWER")
|
message(STATUS "AES support not available on POWER")
|
||||||
elseif(S390X)
|
elseif(S390X)
|
||||||
message(STATUS "AES support not available on s390x")
|
message(STATUS "AES support not available on s390x")
|
||||||
|
elseif(RISCV)
|
||||||
|
message(STATUS "AES support not available on RISC-V")
|
||||||
elseif(ARM6)
|
elseif(ARM6)
|
||||||
message(STATUS "AES support not available on ARMv6")
|
message(STATUS "AES support not available on ARMv6")
|
||||||
elseif(ARM7)
|
elseif(ARM7)
|
||||||
|
|
Loading…
Reference in a new issue