2016-04-16 14:54:46 +08:00
|
|
|
@LIT_SITE_CFG_IN_HEADER@
|
|
|
|
|
2015-12-16 09:02:44 +08:00
|
|
|
import sys
|
|
|
|
|
|
|
|
config.clang_tools_dir = "@CLANG_TOOLS_DIR@"
|
|
|
|
config.test_exec_root = "@CMAKE_CURRENT_BINARY_DIR@"
|
|
|
|
config.test_source_root = "@CMAKE_CURRENT_SOURCE_DIR@"
|
|
|
|
config.target_triple = "@TARGET_TRIPLE@"
|
2016-03-22 06:37:14 +08:00
|
|
|
config.python_exe = "@PYTHON_EXECUTABLE@"
|
2015-12-16 09:02:44 +08:00
|
|
|
|
|
|
|
# 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/lit.cfg")
|