File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ def delete_module_cache(path):
128
128
config .environment ["DYLD_INSERT_LIBRARIES" ] = find_sanitizer_runtime (
129
129
"libclang_rt.asan_osx_dynamic.dylib"
130
130
)
131
+ config .environment ["MallocNanoZone" ] = "0"
131
132
132
133
if "Thread" in config .llvm_use_sanitizer :
133
134
if "Darwin" in config .host_os :
Original file line number Diff line number Diff line change 55
55
]
56
56
)
57
57
58
+ # Enable sanitizer runtime flags.
59
+ if "Address" in config .llvm_use_sanitizer :
60
+ config .environment ["ASAN_OPTIONS" ] = "detect_stack_use_after_return=1"
61
+ if platform .system () == "Darwin" :
62
+ config .environment ["MallocNanoZone" ] = "0"
63
+
64
+ if "Thread" in config .llvm_use_sanitizer :
65
+ config .environment ["TSAN_OPTIONS" ] = "halt_on_error=1"
66
+
58
67
# Support running the test suite under the lldb-repro wrapper. This makes it
59
68
# possible to capture a test suite run and then rerun all the test from the
60
69
# just captured reproducer.
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ config.lldb_enable_lua = @LLDB_ENABLE_LUA@
28
28
config.lldb_build_directory = "@LLDB_TEST_BUILD_DIRECTORY@"
29
29
config.have_lldb_server = @LLDB_TOOL_LLDB_SERVER_BUILD@
30
30
config.lldb_system_debugserver = @LLDB_USE_SYSTEM_DEBUGSERVER@
31
+ config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
31
32
# The shell tests use their own module caches.
32
33
config.lldb_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_LLDB@", "lldb-shell")
33
34
config.clang_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_CLANG@", "lldb-shell")
You can’t perform that action at this time.
0 commit comments