blob: 4a2f77e449e2cb6511661ae7749d62ec749ca6f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
diff -Nawurp a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt 2019-02-14 00:36:54.000000000 +0000
+++ b/CMakeLists.txt 2019-06-14 22:55:19.335471333 +0000
@@ -73,7 +73,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
endif()
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector-strong -fPIE -fPIC -D_FORTIFY_SOURCE=2 -O2 -flto -Wall -Wextra -Wformat -Wformat-security -fvisibility=hidden -march=native")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector-strong -fPIE -fPIC -D_FORTIFY_SOURCE=2 -O2 -flto -Wall -Wextra -Wformat -Wformat-security -fvisibility=hidden -mavx")
if(CMAKE_SYSTEM_NAME STREQUAL "Windows") #for Mingw64 support, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65782
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-asynchronous-unwind-tables")
endif()
|