summaryrefslogtreecommitdiff
path: root/test/Unit/lit.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'test/Unit/lit.cfg')
-rw-r--r--test/Unit/lit.cfg5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Unit/lit.cfg b/test/Unit/lit.cfg
index ba4cbc5d79..1f6fce8912 100644
--- a/test/Unit/lit.cfg
+++ b/test/Unit/lit.cfg
@@ -81,3 +81,8 @@ if config.enable_shared:
shlibpath = os.pathsep + shlibpath
shlibpath = config.shlibdir + shlibpath
config.environment[config.shlibpath_var] = shlibpath
+
+# Setup paths to llvm-symbolizer for Sanitizer tools.
+llvm_tools_dir = getattr(config, 'llvm_tools_dir', None)
+config.environment['ASAN_SYMBOLIZER_PATH'] = llvm_tools_dir + '/llvm-symbolizer'
+config.environment['MSAN_SYMBOLIZER_PATH'] = llvm_tools_dir + '/llvm-symbolizer'