We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f86c35d commit bde099dCopy full SHA for bde099d
example/all/CMakeLists.txt
@@ -35,14 +35,18 @@ enable_testing()
35
# Sanitizers
36
include(sanitizers)
37
38
-set_sanitizer_options(address DEFAULT)
+set_sanitizer_options(address DEFAULT -fsanitize-address-use-after-scope)
39
set_sanitizer_options(leak DEFAULT)
40
set_sanitizer_options(memory DEFAULT)
41
set_sanitizer_options(memorywithorigins DEFAULT SANITIZER memory
42
-fsanitize-memory-track-origins)
43
set_sanitizer_options(undefined DEFAULT)
44
set_sanitizer_options(thread DEFAULT)
45
46
+set(EXAMPLE_USE_SANITIZER
47
+ ""
48
+ CACHE STRING "Sanitizer to use with examples")
49
+
50
if(EXAMPLE_USE_SANITIZER)
51
add_sanitizer_support(${EXAMPLE_USE_SANITIZER})
52
endif()
0 commit comments