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:
Rick V 2019-03-20 21:13:14 -05:00
parent 1eca9e4726
commit 866643f099
No known key found for this signature in database
GPG Key ID: C0EDC8723FDC3465
1 changed files with 5 additions and 1 deletions

View File

@ -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()