LLVM is moving towards the `target=<target triple RE>` syntax in `XFAIL: ` etc., and I'll need the same in a subsequent patch. This patch adds the necessary infrastructure. Tested on `sparc-sun-solaris2.11`, `sparcv9-sun-solaris2.11`, `sparc-unknown-linux-gnu`, `sparc64-unknown-linux-gnu`, `i386-pc-solaris2.11`, `amd64-pc-solaris2.11`, `i686-pc-linux-gnu`, and `x86_64-pc-linux-gnu`.
33 lines
1.4 KiB
INI
33 lines
1.4 KiB
INI
@AUTO_GEN_COMMENT@
|
|
|
|
config.test_c_compiler = "@OPENMP_TEST_C_COMPILER@"
|
|
config.test_cxx_compiler = "@OPENMP_TEST_CXX_COMPILER@"
|
|
config.test_compiler_features = @OPENMP_TEST_COMPILER_FEATURES@
|
|
config.test_compiler_has_omp_h = @OPENMP_TEST_COMPILER_HAS_OMP_H@
|
|
config.test_filecheck = "@OPENMP_FILECHECK_EXECUTABLE@"
|
|
config.test_not = "@OPENMP_NOT_EXECUTABLE@"
|
|
config.test_openmp_flags = "@OPENMP_TEST_OPENMP_FLAGS@"
|
|
config.test_extra_flags = "@OPENMP_TEST_FLAGS@"
|
|
config.libomp_obj_root = "@CMAKE_CURRENT_BINARY_DIR@"
|
|
config.library_dir = "@LIBOMP_LIBRARY_DIR@"
|
|
config.omp_header_directory = "@LIBOMP_BINARY_DIR@/src"
|
|
config.operating_system = "@CMAKE_SYSTEM_NAME@"
|
|
config.target_triple = "@LLVM_TARGET_TRIPLE@"
|
|
config.hwloc_library_dir = "@LIBOMP_HWLOC_LIBRARY_DIR@"
|
|
config.using_hwloc = @LIBOMP_USE_HWLOC@
|
|
config.has_ompt = @LIBOMP_OMPT_SUPPORT@ and @LIBOMP_OMPT_OPTIONAL@
|
|
config.has_ompx_taskgraph = @LIBOMP_OMPX_TASKGRAPH@
|
|
config.has_libm = @LIBOMP_HAVE_LIBM@
|
|
config.has_libatomic = @LIBOMP_HAVE_LIBATOMIC@
|
|
config.is_standalone_build = @OPENMP_STANDALONE_BUILD@
|
|
config.has_omit_frame_pointer_flag = @OPENMP_TEST_COMPILER_HAS_OMIT_FRAME_POINTER_FLAGS@
|
|
config.target_arch = "@LIBOMP_ARCH@"
|
|
config.compiler_frontend_variant = "@CMAKE_C_COMPILER_FRONTEND_VARIANT@"
|
|
config.compiler_simulate_id = "@CMAKE_C_SIMULATE_ID@"
|
|
|
|
import lit.llvm
|
|
lit.llvm.initialize(lit_config, config)
|
|
|
|
# Let the main config do the real work.
|
|
lit_config.load_config(config, "@LIBOMP_BASE_DIR@/test/lit.cfg")
|