summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/test/lit.cfg4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/test/lit.cfg b/lld/test/lit.cfg
index e1f4c8aedab..a27671c5dd5 100644
--- a/lld/test/lit.cfg
+++ b/lld/test/lit.cfg
@@ -40,9 +40,9 @@ if lld_obj_root is not None:
if not llvm_tools_dir:
lit.fatal('No LLVM tools dir set!')
path = os.path.pathsep.join((llvm_tools_dir, config.environment['PATH']))
- path = os.path.pathsep.join((os.path.join('llvm_src_root','test','Scripts'),path))
- config.environment['PATH'] = path
+ path = os.path.pathsep.join((os.path.join(getattr(config, 'llvm_src_root', None),'test','Scripts'),path))
+ config.environment['PATH'] = path
llvm_libs_dir = getattr(config, 'llvm_libs_dir', None)
if not llvm_libs_dir:
OpenPOWER on IntegriCloud