llvm.org GIT mirror llvm / 992dbcf
Set symbolizer path in the test environment. This is needed to get symbolized stack traces when running LLVM tests under (A|M)San. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176933 91177308-0d34-0410-b5e6-96231b3b80d8 Evgeniy Stepanov 6 years ago
2 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
8080 shlibpath = os.pathsep + shlibpath
8181 shlibpath = config.shlibdir + shlibpath
8282 config.environment[config.shlibpath_var] = shlibpath
83
84 # Setup paths to llvm-symbolizer for Sanitizer tools.
85 llvm_tools_dir = getattr(config, 'llvm_tools_dir', None)
86 config.environment['ASAN_SYMBOLIZER_PATH'] = llvm_tools_dir + '/llvm-symbolizer'
87 config.environment['MSAN_SYMBOLIZER_PATH'] = llvm_tools_dir + '/llvm-symbolizer'
8888 # Propagate PYTHON_EXECUTABLE into the environment
8989 config.environment['PYTHON_EXECUTABLE'] = getattr(config, 'python_executable',
9090 '')
91
92 # Setup paths to llvm-symbolizer for Sanitizer tools.
93 llvm_tools_dir = getattr(config, 'llvm_tools_dir', None)
94 config.environment['ASAN_SYMBOLIZER_PATH'] = llvm_tools_dir + '/llvm-symbolizer'
95 config.environment['MSAN_SYMBOLIZER_PATH'] = llvm_tools_dir + '/llvm-symbolizer'
9196
9297 ###
9398