Skip to content

Commit 179d07e

Browse files
committed
better unix build flags
1 parent c8bc418 commit 179d07e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

cpp/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,16 @@ else() # Native build
7676
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
7777
target_compile_options(
7878
compile-options
79-
INTERFACE -O2
79+
INTERFACE -O3
8080
-march=native
81+
-mavx2
82+
-mfma
8183
-fpic
82-
-fopenmp)
84+
-w
85+
-fopenmp
86+
-pthread
87+
-ftree-vectorize
88+
-ftree-vectorizer-verbose=0)
8389
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
8490
target_compile_options(
8591
compile-options

0 commit comments

Comments
 (0)