forked from OSchip/llvm-project
23 lines
836 B
INI
23 lines
836 B
INI
@LIT_SITE_CFG_IN_HEADER@
|
|
|
|
import sys
|
|
|
|
config.clang_tools_dir = "@CLANG_TOOLS_DIR@"
|
|
config.perf_helper_dir = "@CMAKE_CURRENT_SOURCE_DIR@"
|
|
config.test_exec_root = "@CMAKE_CURRENT_BINARY_DIR@"
|
|
config.test_source_root = "@CLANG_PGO_TRAINING_DATA@"
|
|
config.target_triple = "@TARGET_TRIPLE@"
|
|
config.python_exe = "@Python3_EXECUTABLE@"
|
|
|
|
# Support substitution of the tools and libs dirs with user parameters. This is
|
|
# used when we can't determine the tool dir at configuration time.
|
|
try:
|
|
config.clang_tools_dir = config.clang_tools_dir % lit_config.params
|
|
except KeyError:
|
|
e = sys.exc_info()[1]
|
|
key, = e.args
|
|
lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
|
|
|
|
# Let the main config do the real work.
|
|
lit_config.load_config(config, "@CLANG_SOURCE_DIR@/utils/perf-training/order-files.lit.cfg")
|