Skip to content

Commit 1833c73

Browse files
committed
Add UB and leak sanitizer options
1 parent 46d4312 commit 1833c73

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmake/sanitizers.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
option(ENABLE_ADDRESS_SANITIZER OFF)
2+
option(ENABLE_UB_SANITIZER OFF)
3+
option(ENABLE_LEAK_SANITIZER OFF)
24
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
35
if(ENABLE_ADDRESS_SANITIZER)
46
add_compile_options(-fsanitize=address)

0 commit comments

Comments
 (0)