[llvm-commits] [lld] r163929 - /lld/trunk/test/lit.cfg
Sid Manning
sidneym at codeaurora.org
Fri Sep 14 13:04:37 PDT 2012
Author: sidneym
Date: Fri Sep 14 15:04:36 2012
New Revision: 163929
URL: http://llvm.org/viewvc/llvm-project?rev=163929&view=rev
Log:
Fix environment path problem
Modified:
lld/trunk/test/lit.cfg
Modified: lld/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/lit.cfg?rev=163929&r1=163928&r2=163929&view=diff
==============================================================================
--- lld/trunk/test/lit.cfg (original)
+++ lld/trunk/test/lit.cfg Fri Sep 14 15:04:36 2012
@@ -40,9 +40,9 @@
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:
More information about the llvm-commits
mailing list