Blame SOURCES/lit.lld-test.cfg.py

2ece87
#Clear lld_tools_dir so we don't accidently pick up tools from somewhere else
2ece87
config.lld_tools_dir = ""
2ece87
2ece87
if hasattr(config, 'have_zlib'):
2ece87
    # Regression tests write output to this directory, so we need to be able to specify
2ece87
    # a temp directory when invoking lit. e.g. lit -Dlld_obj_root=/tmp/lit
2ece87
    config.lld_obj_root = "%(lld_obj_root)s" % lit_config.params
2ece87
    lit_config.load_config(config, '%(lld_test_root)s/lit.cfg.py' % lit_config.params)
2ece87
else:
2ece87
    # For unit tests, llvm_obj_root is used to find the unit test binaries.
2ece87
    config.lld_obj_root = '%(lld_unittest_bindir)s' % lit_config.params
2ece87
    lit_config.load_config(config, '%(lld_test_root)s/Unit/lit.cfg.py' % lit_config.params)