mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
Don't set LD_PRELOAD to ''. It doesn't work on OpenBSD.
Patch by Brad Smith. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c9109225e2
commit
7c845683ea
@ -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