diff options
Diffstat (limited to 'test/lit.cfg')
-rw-r--r-- | test/lit.cfg | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index 46164f94b1..bca4d5190a 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -33,6 +33,17 @@ def config_new(): config.llvm_obj_root = os.path.join(clang_obj_root, '..', '..') + # Tweak the PATH to include the tools dir and the scripts dir. + if clang_obj_root is not None: + llvm_tools_dir = getattr(config, 'llvm_tools_dir', None) + if not llvm_tools_dir: + lit.fatal('No LLVM tools dir set!') + path = os.path.pathsep.join((llvm_tools_dir, + os.path.join(config.llvm_src_root, + 'test', 'Scripts'), + config.environment['PATH'])) + config.environment['PATH'] = path + ### # Check that the object root is known. |