Skip to content

Commit

Permalink
#1502 change compiler flags to ones recommended for Address Sanitizer…
Browse files Browse the repository at this point in the history
… usage
  • Loading branch information
Jakub Strzebonski committed Sep 16, 2021
1 parent 2ca3482 commit 425e9e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake-modules/SetCXXCompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ elseif (NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "Intel")
message(FATAL_ERROR "Your C++ compiler may not support C++14.")
endif ()

if (vt_asan_enabled)
add_definitions(-DUSE_FEATURE_A)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer" )
endif()
endmacro()

0 comments on commit 425e9e7

Please sign in to comment.