mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
Handle ASAN_OPTIONS and UBSAN_OPTIONS in TestingConfig.py
Currently they are passed to tests of llvm itself, but not, for example, lld. With this patch the options are visible in every test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
86156e8997
commit
3ada4ec04c
@ -95,11 +95,6 @@ for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']:
|
||||
if symbolizer in os.environ:
|
||||
config.environment[symbolizer] = os.environ[symbolizer]
|
||||
|
||||
# Propagate options for sanitizers.
|
||||
for options in ['ASAN_OPTIONS', 'UBSAN_OPTIONS']:
|
||||
if options in os.environ:
|
||||
config.environment[options] = os.environ[options]
|
||||
|
||||
# Set up OCAMLPATH to include newly built OCaml libraries.
|
||||
llvm_lib_dir = getattr(config, 'llvm_lib_dir', None)
|
||||
if not llvm_lib_dir:
|
||||
|
@ -23,7 +23,7 @@ class TestingConfig:
|
||||
}
|
||||
|
||||
pass_vars = ['LIBRARY_PATH', 'LD_LIBRARY_PATH', 'SYSTEMROOT', 'TERM',
|
||||
'LD_PRELOAD']
|
||||
'LD_PRELOAD', 'ASAN_OPTIONS', 'UBSAN_OPTIONS']
|
||||
for var in pass_vars:
|
||||
environment[var] = os.environ.get(var, '')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user