brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 927a8da Raw
35 lines · plain
1set(ORC_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})2 3set(ORC_TESTSUITES)4set(ORC_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})5 6# TODO: This conditional was added to get standalone builds working7#       (rdar://99453446). Longer term we should aim to identify and disable8#       tests that depend on llvm-jitlink, or perhaps just disable ORC runtime9#       regression testing entirely when it's not available.10if (NOT ANDROID AND NOT COMPILER_RT_STANDALONE_BUILD AND11    NOT LLVM_RUNTIMES_BUILD)12  list(APPEND ORC_TEST_DEPS llvm-jitlink lli)13endif()14 15set(ORC_TEST_ARCH ${ORC_SUPPORTED_ARCH})16if (COMPILER_RT_BUILD_ORC)17  list(APPEND ORC_TEST_DEPS orc)18  foreach(arch ${ORC_TEST_ARCH})19    set(ORC_TEST_TARGET_ARCH ${arch})20    string(TOLOWER "-${arch}-${OS_NAME}" ORC_TEST_CONFIG_SUFFIX)21    get_test_cc_for_arch(${arch} ORC_TEST_TARGET_CC ORC_TEST_TARGET_CFLAGS)22    string(TOUPPER ${arch} ARCH_UPPER_CASE)23    set(CONFIG_NAME ${ARCH_UPPER_CASE}${OS_NAME}Config)24 25    configure_lit_site_cfg(26      ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in27      ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg.py)28    list(APPEND ORC_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME})29  endforeach()30endif()31 32add_lit_testsuite(check-orc-rt "Running the ORC runtime tests"33  ${ORC_TESTSUITES}34  DEPENDS ${ORC_TEST_DEPS})35