mirror of https://github.com/oxen-io/lokinet
public releases should run reasonably well on most
devices in spite of the buiild system currently, the instruction scheduling is tuned for the AMD K10 uarch, which is the CPU of the unix build agent
This commit is contained in:
parent
1eca9e4726
commit
866643f099
|
@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 3.6.0)
|
|||
|
||||
set(PROJECT_NAME lokinet)
|
||||
project(${PROJECT_NAME} C CXX ASM)
|
||||
set(CMAKE_C_FLAGS_RELEASE "")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "")
|
||||
set(CMAKE_ASM_FLAGS_RELEASE "")
|
||||
|
||||
# Core options
|
||||
option(USE_AVX2 "enable avx2 code" )
|
||||
|
@ -120,7 +123,8 @@ if(DEBIAN)
|
|||
add_definitions(-DDEBIAN)
|
||||
elseif(NOT ANDROID AND NOT NON_PC_TARGET)
|
||||
if (NOT USE_AVX2)
|
||||
set(CRYPTO_FLAGS -march=nocona -mtune=native -mfpmath=sse)
|
||||
# Public binary releases
|
||||
set(CRYPTO_FLAGS -march=nocona -mtune=core2 -mfpmath=sse)
|
||||
else()
|
||||
set(CRYPTO_FLAGS -march=haswell -mtune=native -mfpmath=sse)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue