summaryrefslogtreecommitdiff
path: root/test/lit.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index 65e0dc7ea0..5e7e0e4449 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -49,7 +49,7 @@ if llvm_obj_root is not None:
config.environment['HOME'] = os.environ['HOME']
# Propogate LLVM_SRC_ROOT into the environment.
-config.environment['LLVM_SRC_ROOT'] = config.llvm_src_root
+config.environment['LLVM_SRC_ROOT'] = getattr(config, 'llvm_src_root', '')
# Propogate PYTHON_EXEUTABLE into the environment
config.environment['PYTHON_EXECUTABLE'] = getattr(config, 'python_executable',