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