summaryrefslogtreecommitdiff
path: root/lib/msan/lit_tests/lit.site.cfg.in
blob: 3b969e0b06142fcc36e213cdde7bdce3e7a3622a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
config.target_triple = "@TARGET_TRIPLE@"
config.host_os = "@HOST_OS@"
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
config.compiler_rt_src_root = "@COMPILER_RT_SOURCE_DIR@"
config.llvm_obj_root = "@LLVM_BINARY_DIR@"
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
config.clang = "@LLVM_BINARY_DIR@/bin/clang"

# LLVM tools dir can be passed in lit parameters, so try to
# apply substitution.
try:
  config.llvm_tools_dir = config.llvm_tools_dir % lit.params
except KeyError,e:
  key, = e.args
  lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key))

# Let the main config do the real work.
lit.load_config(config, "@MSAN_SOURCE_DIR@/lit_tests/lit.cfg")