Skip to content

Commit

Permalink
Add check for invalid fp-ops for GNU in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
amametjanov committed Jul 13, 2023
1 parent fc9f903 commit 60c91f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cime_config/machines/cmake_macros/gnu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ endif()
if (DEBUG)
string(APPEND CFLAGS " -g -Wall -fbacktrace -fcheck=bounds -ffpe-trap=invalid,zero,overflow")
string(APPEND CXXFLAGS " -g -Wall -fbacktrace")
string(APPEND FFLAGS " -g -Wall -fbacktrace -fcheck=bounds -ffpe-trap=zero,overflow")
string(APPEND FFLAGS " -g -Wall -fbacktrace -fcheck=bounds,pointer -ffpe-trap=invalid,zero,overflow")
string(APPEND CPPDEFS " -DYAKL_DEBUG")
endif()
if (NOT DEBUG)
Expand Down

0 comments on commit 60c91f8

Please sign in to comment.