Blame SOURCES/lit.fedora.cfg.py

6a1e6b
6a1e6b
config.llvm_tools_dir = '/usr/bin'
6a1e6b
config.llvm_shlib_dir = '%(llvm_shlib_dir)s' % lit_config.params
6a1e6b
6a1e6b
if hasattr(config, 'host_triple'):
6a1e6b
    # This means we are running lit regression tests
6a1e6b
6a1e6b
    # Regression tests write output to this directory, so we need to be able to specify
6a1e6b
    # a temp directory when invoking lit. e.g. lit -Dllvm_obj_root=/tmp/lit
6a1e6b
    config.llvm_obj_root = "%(llvm_obj_root)s" % lit_config.params
6a1e6b
    lit_config.load_config(config, '%(llvm_test_root)s/lit.cfg.py' % lit_config.params)
6a1e6b
else:
6a1e6b
    # This means we are running lit unit tests
6a1e6b
6a1e6b
    # For unit tests, llvm_obj_root is used to find the unit test binaries.
6a1e6b
    config.llvm_obj_root = '%(llvm_unittest_bindir)s' % lit_config.params
6a1e6b
    lit_config.load_config(config, '%(llvm_test_root)s/Unit/lit.cfg.py' % lit_config.params)