Fix environment path problem

llvm-svn: 163929
This commit is contained in:
Sid Manning 2012-09-14 20:04:36 +00:00
parent af2808cb72
commit 37e3120af8
1 changed files with 2 additions and 2 deletions

View File

@ -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: