aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-01-14 02:23:27 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-01-14 02:23:27 +0000
commitc7e4fb209ea550efe22f1f697a0240880527dfd0 (patch)
tree1b5ee00cfb9f83f5e38eea6741dc05124349c361
parenta64949dfb855821f16fdfef1bb78b412509fb8e0 (diff)
downloadllvm-c7e4fb209ea550efe22f1f697a0240880527dfd0.zip
llvm-c7e4fb209ea550efe22f1f697a0240880527dfd0.tar.gz
llvm-c7e4fb209ea550efe22f1f697a0240880527dfd0.tar.bz2
Another try at handling LD_LIBRARY_PATH not being defined.
llvm-svn: 225932
-rw-r--r--compiler-rt/test/asan/Unit/lit.site.cfg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/asan/Unit/lit.site.cfg.in b/compiler-rt/test/asan/Unit/lit.site.cfg.in
index a354975..b599102 100644
--- a/compiler-rt/test/asan/Unit/lit.site.cfg.in
+++ b/compiler-rt/test/asan/Unit/lit.site.cfg.in
@@ -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.