Skip to content

Commit

Permalink
Address/thread sanitizer compiler flag cleanup (mistakenly included o…
Browse files Browse the repository at this point in the history
…ptimization reports)
  • Loading branch information
smillerc committed Feb 9, 2021
1 parent 6968160 commit e77cfcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/SetFortranFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
set(CMAKE_Fortran_FLAGS_RELEASE "-O3 -ftree-vectorize -funroll-loops -finline-functions -march=native -mtune=native")

if(USE_ASAN)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -g -fsanitize=leak -fsanitize=address -fno-omit-frame-pointer -fopt-info-all")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -g -fsanitize=leak -fsanitize=address -fno-omit-frame-pointer")
endif()

if(USE_TSAN)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fsanitize=thread -fno-omit-frame-pointer -fopt-info-all")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fsanitize=thread -fno-omit-frame-pointer")
endif()

if(OUTPUT_OPTIMIZATION_REPORTS)
Expand Down

0 comments on commit e77cfcf

Please sign in to comment.