mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Don't set LD_PRELOAD to ''. It doesn't work on OpenBSD.
Patch by Brad Smith. llvm-svn: 225890
This commit is contained in:
parent
64e6092133
commit
0241b53c72
@ -26,7 +26,11 @@ class TestingConfig:
|
||||
'LD_PRELOAD', 'ASAN_OPTIONS', 'UBSAN_OPTIONS',
|
||||
'LSAN_OPTIONS']
|
||||
for var in pass_vars:
|
||||
environment[var] = os.environ.get(var, '')
|
||||
val = os.environ.get(var, '')
|
||||
# Check for empty string as some variables such as LD_PRELOAD cannot be empty
|
||||
# ('') for OS's such as OpenBSD.
|
||||
if val:
|
||||
environment[var] = val
|
||||
|
||||
if sys.platform == 'win32':
|
||||
environment.update({
|
||||
|
Loading…
Reference in New Issue
Block a user