mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
Use -mcpu=native on ppc64le
This commit is contained in:
parent
8735073cc8
commit
04fa117399
1 changed files with 5 additions and 1 deletions
|
@ -162,7 +162,11 @@ endif(WOW64_CROSS_COMPILE OR WIN64_CROSS_COMPILE)
|
|||
if(DEBIAN)
|
||||
add_definitions(-DDEBIAN)
|
||||
elseif(NATIVE_BUILD)
|
||||
set(CRYPTO_FLAGS -march=native -mtune=native)
|
||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL ppc64le)
|
||||
set(CRYPTO_FLAGS -mcpu=native -mtune=native)
|
||||
else()
|
||||
set(CRYPTO_FLAGS -march=native -mtune=native)
|
||||
endif()
|
||||
elseif(NOT NON_PC_TARGET)
|
||||
if (USE_AVX2)
|
||||
set(CRYPTO_FLAGS -march=haswell -mtune=haswell -mfpmath=sse)
|
||||
|
|
Loading…
Reference in a new issue