blob: 8d5ebfa5e9b8fb8a3af32ba60ee3f0cabf2b0dc5 [file] [log] [blame]
Alex Denisov4e0cc9e2016-04-16 07:14:05 +00001@LIT_SITE_CFG_IN_HEADER@
2
Zachary Turner891af042015-03-13 20:55:07 +00003config.llvm_src_root = "@LLVM_SOURCE_DIR@"
4config.llvm_obj_root = "@LLVM_BINARY_DIR@"
5config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
6config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
7config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
8config.lldb_obj_root = "@LLDB_BINARY_DIR@"
Aaron Smith07482d32018-02-21 00:05:51 +00009config.lldb_libs_dir = "@LLDB_LIBS_DIR@"
10config.lldb_tools_dir = "@LLDB_TOOLS_DIR@"
Zachary Turner891af042015-03-13 20:55:07 +000011config.target_triple = "@TARGET_TRIPLE@"
12config.python_executable = "@PYTHON_EXECUTABLE@"
Pavel Labath7e17fc52017-10-27 02:24:04 +000013config.cc = "@LLDB_TEST_C_COMPILER@"
14config.cxx = "@LLDB_TEST_CXX_COMPILER@"
Michal Gornyc5e0b632018-01-09 14:44:04 +000015config.have_zlib = @LLVM_ENABLE_ZLIB@
Pavel Labath90b0a532018-05-03 10:57:16 +000016config.have_lld = @LLDB_HAVE_LLD@
Zachary Turner891af042015-03-13 20:55:07 +000017
18# Support substitution of the tools and libs dirs with user parameters. This is
19# used when we can't determine the tool dir at configuration time.
20try:
21 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
22 config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
Aaron Smith07482d32018-02-21 00:05:51 +000023 config.lldb_libs_dir = config.lldb_libs_dir % lit_config.params
24 config.lldb_tools_dir = config.lldb_tools_dir % lit_config.params
25 config.cc = config.cc % lit_config.params
26 config.cxx = config.cxx % lit_config.params
Zachary Turner891af042015-03-13 20:55:07 +000027except KeyError as e:
28 key, = e.args
29 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
30
31# Let the main config do the real work.
Zachary Turnerb6355cc2018-11-02 17:49:01 +000032lit_config.load_config(config, "@LLDB_SOURCE_DIR@/lit/lit.cfg.py")