llvm.org GIT mirror llvm / 7c84568
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 Rafael Espindola 4 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2525 'LD_PRELOAD', 'ASAN_OPTIONS', 'UBSAN_OPTIONS',
2626 'LSAN_OPTIONS']
2727 for var in pass_vars:
28 environment[var] = os.environ.get(var, '')
28 val = os.environ.get(var, '')
29 # Check for empty string as some variables such as LD_PRELOAD cannot be empty
30 # ('') for OS's such as OpenBSD.
31 if val:
32 environment[var] = val
2933
3034 if sys.platform == 'win32':
3135 environment.update({