Another try at handling LD_LIBRARY_PATH not being defined.

llvm-svn: 225932
This commit is contained in:
Rafael Espindola 2015-01-14 02:23:27 +00:00
parent a64949dfb8
commit c7e4fb209e
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/unittests/lit.common.un
def push_ld_library_path(config, new_path):
new_ld_library_path = os.path.pathsep.join(
(new_path, config.environment['LD_LIBRARY_PATH']))
(new_path, config.environment.get('LD_LIBRARY_PATH', '')))
config.environment['LD_LIBRARY_PATH'] = new_ld_library_path
# Setup config name.