Skip to content
Snippets Groups Projects
Commit 33b28932 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

Correct gcc flag -mtune to correct -march.

The latter implies the former.
parent ff7ddb44
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ if(COMPILER_IS_GCC)
endif()
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
message(STATUS "Set GCC release flags")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -mtune=native -DNDEBUG")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -march=native -DNDEBUG")
# Disable -march=native on mac or Ninja generator
if(NOT APPLE AND NOT "${CMAKE_GENERATOR}" STREQUAL "Ninja")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment