diff options
Diffstat (limited to 'test/lit.cfg')
-rw-r--r-- | test/lit.cfg | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index 0894d9b38a..b4aec5a50a 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -40,13 +40,14 @@ if llvm_obj_root is not None: config.environment['PATH'] = path llvmgcc_dir = getattr(config, 'llvmgcc_dir', None) - if not llvm_tools_dir: - lit.fatal('No llvm-gcc dir set!') if llvmgcc_dir: path = os.path.pathsep.join((os.path.join(llvmgcc_dir, 'bin'), config.environment['PATH'])) config.environment['PATH'] = path +# Propogate 'HOME' through the environment. +config.environment['HOME'] = os.environ['HOME'] + ### import os @@ -143,6 +144,9 @@ bindings = set(site_exp['llvm_bindings'].split(',')) def llvm_supports_binding(name): return name in bindings +config.conditions["TARGET"] = llvm_supports_target +config.conditions["BINDING"] = llvm_supports_binding + # Provide on_clone hook for reading 'dg.exp'. import os simpleLibData = re.compile(r"""load_lib llvm.exp |