mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 13:06:48 +00:00

We want to move functionality from the LLVM ORCTargetProcess library into the ORC runtime, and this will mean implementing remote-executor testing tools (like llvm-jitlink-executor and lli-child-target) in the ORC runtime. This patch refactors the ORC runtime build system to introduce an add_orc_tool function that can be used to add new test tools. The code is modeled on existing functions for adding unit tests. A placeholder orc-rt-executor tool and test are added to verify that the config changes behave as expected. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D133084
18 lines
770 B
Python
18 lines
770 B
Python
@LIT_SITE_CFG_IN_HEADER@
|
|
|
|
# Tool-specific config options.
|
|
config.name_suffix = "@ORC_TEST_CONFIG_SUFFIX@"
|
|
config.orc_lit_source_dir = "@ORC_LIT_SOURCE_DIR@"
|
|
config.target_cflags = "@ORC_TEST_TARGET_CFLAGS@"
|
|
config.target_arch = "@ORC_TEST_TARGET_ARCH@"
|
|
config.target_os = "@ORC_TEST_TARGET_OS@"
|
|
config.built_with_llvm = ("@COMPILER_RT_STANDALONE_BUILD@" != "TRUE")
|
|
config.libunwind_shared = "@LIBUNWIND_ENABLE_SHARED@"
|
|
config.libunwind_install_dir = "@LLVM_BINARY_DIR@/@LIBUNWIND_INSTALL_LIBRARY_DIR@"
|
|
|
|
# Load common config for all compiler-rt lit tests
|
|
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
|
|
|
|
# Load tool-specific config that would do the real work.
|
|
lit_config.load_config(config, "@CMAKE_CURRENT_SOURCE_DIR@/lit.cfg.py")
|