Skip to content

Commit 2a74362

Browse files
authored
Enable frame pointers when using AddressSanitizer (#684)
1 parent 6d8fa39 commit 2a74362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/sanitizers.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ option(ENABLE_UB_SANITIZER OFF)
33
option(ENABLE_LEAK_SANITIZER OFF)
44
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
55
if(ENABLE_ADDRESS_SANITIZER)
6-
add_compile_options(-fsanitize=address)
6+
add_compile_options(-fsanitize=address -fno-omit-frame-pointer)
77
add_link_options(-fsanitize=address)
88
message(STATUS "Enabled address sanitizer")
99
endif()

0 commit comments

Comments
 (0)