We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dac41b5 commit 61d267aCopy full SHA for 61d267a
cmake/compilers.cmake
@@ -9,7 +9,8 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL Intel)
9
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
10
string(APPEND CMAKE_Fortran_FLAGS " -Wall -Wextra -fimplicit-none")
11
string(APPEND CMAKE_Fortran_FLAGS_DEBUG " -fcheck=all -Werror=array-bounds")
12
- add_compile_options(-march=native)
+ # -march=native is not for all CPU arches with GCC.
13
+ add_compile_options(-mtune=native)
14
15
if(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 8)
16
string(APPEND CMAKE_Fortran_FLAGS " -std=f2018")
0 commit comments