зеркало из https://github.com/microsoft/clang-1.git
Set symbolizer path in the test environment.
This is needed to get symbolized stack traces when running Clang tests under (A|M)San. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176934 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
99c6418e37
Коммит
e0d5c86687
|
@ -84,3 +84,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'
|
||||
|
|
|
@ -142,6 +142,11 @@ if config.test_exec_root is None:
|
|||
lit.load_config(config, site_cfg)
|
||||
raise SystemExit
|
||||
|
||||
# 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'
|
||||
|
||||
###
|
||||
|
||||
# Discover the 'clang' and 'clangcc' to use.
|
||||
|
|
Загрузка…
Ссылка в новой задаче