xref: /llvm-project/compiler-rt/test/xray/lit.site.cfg.py.in (revision 8007ff1ab159ae56cb32184626119b7087c59d06)
1@LIT_SITE_CFG_IN_HEADER@
2
3# Tool-specific config options.
4config.name_suffix = "@XRAY_TEST_CONFIG_SUFFIX@"
5config.xray_lit_source_dir = "@XRAY_LIT_SOURCE_DIR@"
6config.target_cflags = "@XRAY_TEST_TARGET_CFLAGS@"
7config.target_arch = "@XRAY_TEST_TARGET_ARCH@"
8config.built_with_llvm = ("@COMPILER_RT_STANDALONE_BUILD@" != "TRUE")
9
10# TODO: Look into whether we can run a capability test on the standalone build to
11# see whether it can run 'llvm-xray convert' instead of turning off tests for a
12# standalone build.
13if config.built_with_llvm:
14  config.available_features.add('built-in-llvm-tree')
15
16# Load common config for all compiler-rt lit tests
17lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
18
19# Load tool-specific config that would do the real work.
20lit_config.load_config(config, "@CMAKE_CURRENT_SOURCE_DIR@/lit.cfg.py")
21