mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +00:00
refactor duplicated code. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221191 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c671375e8e
commit
86156e8997
@ -17,16 +17,16 @@ class TestingConfig:
|
||||
"""
|
||||
# Set the environment based on the command line arguments.
|
||||
environment = {
|
||||
'LIBRARY_PATH' : os.environ.get('LIBRARY_PATH',''),
|
||||
'LD_LIBRARY_PATH' : os.environ.get('LD_LIBRARY_PATH',''),
|
||||
'PATH' : os.pathsep.join(litConfig.path +
|
||||
[os.environ.get('PATH','')]),
|
||||
'SYSTEMROOT' : os.environ.get('SYSTEMROOT',''),
|
||||
'TERM' : os.environ.get('TERM',''),
|
||||
'LLVM_DISABLE_CRASH_REPORT' : '1',
|
||||
'LD_PRELOAD' : os.environ.get('LD_PRELOAD',''),
|
||||
}
|
||||
|
||||
pass_vars = ['LIBRARY_PATH', 'LD_LIBRARY_PATH', 'SYSTEMROOT', 'TERM',
|
||||
'LD_PRELOAD']
|
||||
for var in pass_vars:
|
||||
environment[var] = os.environ.get(var, '')
|
||||
|
||||
if sys.platform == 'win32':
|
||||
environment.update({
|
||||
'INCLUDE' : os.environ.get('INCLUDE',''),
|
||||
|
Loading…
x
Reference in New Issue
Block a user