Skip to content

Commit

Permalink
Remove -march=native from GCC flags
Browse files Browse the repository at this point in the history
  • Loading branch information
rcabell committed Aug 1, 2024
1 parent ac60260 commit 84671fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ if (CMAKE_Fortran_COMPILER_ID MATCHES "GNU.*")
if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 9)
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch")
endif()
set (CMAKE_Fortran_FLAGS_RELEASE "-O2 -march=native")
set (CMAKE_Fortran_FLAGS_RELEASE "-O2")
set (CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -fbacktrace")
elseif (CMAKE_Fortran_COMPILER_ID MATCHES "Intel.*")
# set compile flags for ifort
Expand Down

0 comments on commit 84671fb

Please sign in to comment.