1 @LIT_SITE_CFG_IN_HEADER@
5 config
.llvm_src_root
= "@LLVM_SOURCE_DIR@"
6 config
.llvm_obj_root
= "@LLVM_BINARY_DIR@"
7 config
.llvm_tools_dir
= "@LLVM_TOOLS_DIR@"
8 config
.llvm_libs_dir
= "@LLVM_LIBS_DIR@"
9 config
.llvm_build_mode
= "@LLVM_BUILD_MODE@"
10 config
.clang_obj_root
= "@CLANG_BINARY_DIR@"
11 config
.enable_shared
= @ENABLE_SHARED@
12 config
.shlibdir
= "@SHLIBDIR@"
13 config
.target_triple
= "@TARGET_TRIPLE@"
15 # Support substitution of the tools_dir, libs_dirs, and build_mode with user
16 # parameters. This is used when we can't determine the tool dir at
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 config
.llvm_build_mode
= config
.llvm_build_mode
% lit_config
.params
25 lit_config
.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key
,key
))
27 # Let the main config do the real work.
28 lit_config
.load_config(config
, "@CLANG_SOURCE_DIR@/test/Unit/lit.cfg.py")