Handle LD_LIBRARY_PATH not being defined.

Should fix the bots after r225890.

llvm-svn: 225919
This commit is contained in:
Rafael Espindola 2015-01-14 01:28:08 +00:00
parent b84840c04e
commit a9782ecfb0
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ def push_dynamic_library_lookup_path(config, new_path):
dynamic_library_lookup_var = 'LD_LIBRARY_PATH'
new_ld_library_path = os.path.pathsep.join(
(new_path, config.environment[dynamic_library_lookup_var]))
(new_path, config.environment.get(dynamic_library_lookup_var, '')))
config.environment[dynamic_library_lookup_var] = new_ld_library_path
# Setup config name.