
Includes CMake files and placeholder header, library, test tool, regression test and unit test. The aim for this project is to create a replacement for the existing ORC Runtime that currently resides in `llvm-project/compiler-rt/lib/orc`. The new project will provide a superset of the original features, and the old runtime will be removed once the new runtime is sufficiently developed. See discussion at https://discourse.llvm.org/t/rfc-move-orc-executor-support-into-top-level-project/81049
42 lines
1.1 KiB
CMake
42 lines
1.1 KiB
CMake
include(OrcRTTesting)
|
|
|
|
if (ORC_RT_LLVM_TOOLS_AVAILABLE)
|
|
configure_lit_site_cfg(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
|
|
MAIN_CONFIG
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
|
|
)
|
|
|
|
list(APPEND ORC_RT_TEST_DEPS
|
|
orc-executor
|
|
)
|
|
|
|
add_custom_target(orc-rt-test-depends DEPENDS ${ORC_RT_TEST_DEPS})
|
|
set_target_properties(orc-rt-test-depends PROPERTIES FOLDER "orc-rt/tests")
|
|
|
|
add_lit_testsuite(check-orc-rt "Running the ORC-RT regression tests"
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
DEPENDS ${ORC_RT_TEST_DEPS}
|
|
)
|
|
else()
|
|
message(WARNING "ORC-RT testing tools missing (see cmake log for details). ORC-RT regression tests disabled.")
|
|
endif()
|
|
|
|
configure_lit_site_cfg(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/unit/lit.site.cfg.py.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/unit/lit.site.cfg.py
|
|
MAIN_CONFIG
|
|
${CMAKE_CURRENT_SOURCE_DIR}/unit/lit.cfg.py
|
|
)
|
|
|
|
# add_lit_testsuites(ORC-RT ${CMAKE_CURRENT_SOURCE_DIR}
|
|
# DEPENDS ${ORC_RT_TEST_DEPS}
|
|
# )
|
|
|
|
add_lit_testsuite(check-orc-rt-unit "Running orc-rt unittest suites"
|
|
${CMAKE_CURRENT_BINARY_DIR}/unit
|
|
EXCLUDE_FROM_CHECK_ALL
|
|
DEPENDS OrcRTUnitTests)
|
|
|