diff options
Diffstat (limited to 'test/Unit/lit.cfg')
-rw-r--r-- | test/Unit/lit.cfg | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Unit/lit.cfg b/test/Unit/lit.cfg index ba4cbc5d79..8dc7853d91 100644 --- a/test/Unit/lit.cfg +++ b/test/Unit/lit.cfg @@ -81,3 +81,10 @@ 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) +if llvm_tools_dir: + llvm_symbolizer_path = os.path.join(llvm_tools_dir, 'llvm-symbolizer') + config.environment['ASAN_SYMBOLIZER_PATH'] = llvm_symbolizer_path + config.environment['MSAN_SYMBOLIZER_PATH'] = llvm_symbolizer_path |