Blame SOURCES/lit.fedora.cfg.py

d30294
import tempfile
d30294
d30294
compiler = '%(libomp_compiler)s' % lit_config.params
d30294
config.test_filecheck = '%(bindir)s/FileCheck' % lit_config.params
d30294
config.omp_header_directory = '%(includedir)s' % lit_config.params
d30294
config.libomp_obj_root = tempfile.mkdtemp()
d30294
config.library_dir = '%(libdir)s' % lit_config.params
d30294
test_root = '%(libomp_test_root)s' % lit_config.params
d30294
d30294
# Lit will default to the compiler used to build openmp, which is gcc, but we
d30294
# want to run the tests using clang.
655d27
config.test_compiler_features = ['clang', 'clang-11']
d30294
config.test_c_compiler = 'clang'
d30294
config.test_cxx_compiler = 'clang++'
d30294
lit_config.load_config(config, '%(libomp_test_root)s/lit.cfg' % lit_config.params)