cling/test/lit.site.cfg.in
2023-12-11 08:59:20 +01:00

27 lines
957 B
INI

import sys
## Autogenerated by LLVM/Cling configuration.
# Do not edit!
config.llvm_obj_root = "@LLVM_BINARY_DIR@"
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
config.cling_src_root = "@CLING_SOURCE_DIR@"
config.cling_obj_root = "@CLING_BINARY_DIR@"
config.target_triple = "@LLVM_TARGET_TRIPLE@"
config.host_triple = "@LLVM_TARGET_TRIPLE@"
config.shlibext = "@TARGET_SHLIBEXT@"
config.cxx_standard = "@CMAKE_CXX_STANDARD@"
# 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.llvm_tools_dir = config.llvm_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))
import lit.llvm
lit.llvm.initialize(lit_config, config)
# Let the main config do the real work.
lit_config.load_config(config, "@CLING_SOURCE_DIR@/test/lit.cfg")