File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -80,30 +80,35 @@ if(WIN32)
8080 set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON )
8181endif ()
8282
83- option (ENABLE_ASAN "Enable Address-Sanitizer (currently only supported on GCC and Clang)" OFF )
84-
83+ option (ENABLE_ASAN "Enable AddressSanitizer (currently only supported on GCC and Clang)" OFF )
8584if (ENABLE_ASAN)
8685 message (
8786 WARNING
88- "Address-Sanitizer instrumentation will be injected into binaries - do not release these binaries"
87+ "AddressSanitizer instrumentation will be injected into binaries - do not release these binaries"
8988 )
9089 add_compile_options (-fno-omit-frame-pointer -fsanitize=address)
9190 add_link_options (-fno-omit-frame-pointer -fsanitize=address)
9291endif ()
9392
93+ option (ENABLE_TSAN "Enable ThreadSanitizer (currently only supported on GCC and Clang)" OFF )
9494if (ENABLE_TSAN)
9595 message (
9696 WARNING
97- "Thread-Sanitizer instrumentation will be injected into binaries - do not release these binaries"
97+ "ThreadSanitizer instrumentation will be injected into binaries - do not release these binaries"
9898 )
9999 add_compile_options (-fno-omit-frame-pointer -fsanitize=thread)
100100 add_link_options (-fno-omit-frame-pointer -fsanitize=thread)
101101endif ()
102102
103- if (ENABLE_USAN)
103+ option (
104+ ENABLE_UBSAN
105+ "Enable UndefinedBehaviorSanitizer (currently only supported on GCC and Clang)"
106+ OFF
107+ )
108+ if (ENABLE_UBSAN)
104109 message (
105110 WARNING
106- "Undefined-Sanitizer instrumentation will be injected into binaries - do not release these binaries"
111+ "UndefinedBehaviorSanitizer instrumentation will be injected into binaries - do not release these binaries"
107112 )
108113 add_compile_options (-fno-omit-frame-pointer -fsanitize=undefined)
109114 add_link_options (-fno-omit-frame-pointer -fsanitize=undefined)
You can’t perform that action at this time.
0 commit comments