summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/test/Unit/lit.cfg5
-rw-r--r--clang/test/lit.cfg5
2 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Unit/lit.cfg b/clang/test/Unit/lit.cfg
index 8f27781523f..d58337c8f79 100644
--- a/clang/test/Unit/lit.cfg
+++ b/clang/test/Unit/lit.cfg
@@ -28,6 +28,11 @@ if 'TMP' in os.environ:
if 'TEMP' in os.environ:
config.environment['TEMP'] = os.environ['TEMP']
+# Propagate path to symbolizer for ASan/MSan.
+for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']:
+ if symbolizer in os.environ:
+ config.environment[symbolizer] = os.environ[symbolizer]
+
###
# Check that the object root is known.
diff --git a/clang/test/lit.cfg b/clang/test/lit.cfg
index f692dc74e51..4466f0fc074 100644
--- a/clang/test/lit.cfg
+++ b/clang/test/lit.cfg
@@ -90,6 +90,11 @@ if clang_obj_root is not None:
config.environment.get('LD_LIBRARY_PATH','')))
config.environment['LD_LIBRARY_PATH'] = path
+# Propagate path to symbolizer for ASan/MSan.
+for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']:
+ if symbolizer in os.environ:
+ config.environment[symbolizer] = os.environ[symbolizer]
+
###
# Check that the object root is known.
OpenPOWER on IntegriCloud