non-avx2 support and build fix
This commit is contained in:
@@ -27,7 +27,7 @@ else()
|
||||
target_compile_definitions(${PROJECT_NAME} PRIVATE USE_AVX2=0)
|
||||
endif()
|
||||
|
||||
set(CXX_ADDITIONAL_FLAGS "-mno-avx2 -fomit-frame-pointer -funroll-loops -ftree-vectorize -ftree-slp-vectorize -fdelete-null-pointer-checks -fno-exceptions -fno-rtti")
|
||||
set(CXX_ADDITIONAL_FLAGS "-fomit-frame-pointer -funroll-loops -ftree-vectorize -ftree-slp-vectorize -fdelete-null-pointer-checks -fno-exceptions -fno-rtti")
|
||||
set(CMAKE_CXX_FLAGS "-O3 -march=native -ffast-math -pipe -Wall -Wextra -Wpedantic -Wconversion -Wuninitialized -Wsign-conversion -flto")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX_ADDITIONAL_FLAGS}")
|
||||
target_link_libraries(${PROJECT_NAME} pthread sodium)
|
||||
|
||||
Reference in New Issue
Block a user