[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / clang-tools-extra / test / lit.site.cfg.py.in
blobf8300c1dd39dcea9418d80871842d6ef9c900f93
1 @LIT_SITE_CFG_IN_HEADER@
3 import sys
5 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
6 config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
7 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
8 config.clang_tools_binary_dir = "@CLANG_TOOLS_BINARY_DIR@"
9 config.clang_tools_dir = "@CLANG_TOOLS_DIR@"
10 config.clang_libs_dir = "@SHLIBDIR@"
11 config.python_executable = "@Python3_EXECUTABLE@"
12 config.target_triple = "@TARGET_TRIPLE@"
13 config.clang_tidy_staticanalyzer = @CLANG_TIDY_ENABLE_STATIC_ANALYZER@
15 # Support substitution of the tools and libs dirs with user parameters. This is
16 # used when we can't determine the tool dir at configuration time.
17 try:
18 config.clang_tools_dir = config.clang_tools_dir % lit_config.params
19 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
20 config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
21 except KeyError:
22 e = sys.exc_info()[1]
23 key, = e.args
24 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
26 import lit.llvm
27 lit.llvm.initialize(lit_config, config)
29 # Let the main config do the real work.
30 lit_config.load_config(config, "@CLANG_TOOLS_SOURCE_DIR@/test/lit.cfg.py")