mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 18:11:19 +00:00
Disable ASan/MSan symbolization of reports in tests.
It was using an instrumented symbolizer binary, which is a potential fork bomb. llvm-svn: 178140
This commit is contained in:
parent
8dcc970760
commit
8d7d1b5377
@ -84,10 +84,3 @@ 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
|
||||
|
@ -83,11 +83,6 @@ if clang_obj_root is not None:
|
||||
lit.fatal('No LLVM tools dir set!')
|
||||
path = os.path.pathsep.join((llvm_tools_dir, config.environment['PATH']))
|
||||
config.environment['PATH'] = path
|
||||
# Setup paths to llvm-symbolizer for Sanitizer tools.
|
||||
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
|
||||
|
||||
llvm_libs_dir = getattr(config, 'llvm_libs_dir', None)
|
||||
if not llvm_libs_dir:
|
||||
lit.fatal('No LLVM libs dir set!')
|
||||
|
Loading…
x
Reference in New Issue
Block a user