Alex Denisov | 4e0cc9e | 2016-04-16 07:14:05 +0000 | [diff] [blame] | 1 | @LIT_SITE_CFG_IN_HEADER@ |
| 2 | |
Zachary Turner | 891af04 | 2015-03-13 20:55:07 +0000 | [diff] [blame] | 3 | config.llvm_src_root = "@LLVM_SOURCE_DIR@" |
| 4 | config.llvm_obj_root = "@LLVM_BINARY_DIR@" |
| 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.lldb_obj_root = "@LLDB_BINARY_DIR@" |
Aaron Smith | 07482d3 | 2018-02-21 00:05:51 +0000 | [diff] [blame] | 9 | config.lldb_libs_dir = "@LLDB_LIBS_DIR@" |
| 10 | config.lldb_tools_dir = "@LLDB_TOOLS_DIR@" |
Zachary Turner | 891af04 | 2015-03-13 20:55:07 +0000 | [diff] [blame] | 11 | config.target_triple = "@TARGET_TRIPLE@" |
| 12 | config.python_executable = "@PYTHON_EXECUTABLE@" |
Pavel Labath | 7e17fc5 | 2017-10-27 02:24:04 +0000 | [diff] [blame] | 13 | config.cc = "@LLDB_TEST_C_COMPILER@" |
| 14 | config.cxx = "@LLDB_TEST_CXX_COMPILER@" |
Michal Gorny | c5e0b63 | 2018-01-09 14:44:04 +0000 | [diff] [blame] | 15 | config.have_zlib = @LLVM_ENABLE_ZLIB@ |
Pavel Labath | 90b0a53 | 2018-05-03 10:57:16 +0000 | [diff] [blame] | 16 | config.have_lld = @LLDB_HAVE_LLD@ |
Zachary Turner | 891af04 | 2015-03-13 20:55:07 +0000 | [diff] [blame] | 17 | |
| 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. |
| 20 | try: |
| 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 Smith | 07482d3 | 2018-02-21 00:05:51 +0000 | [diff] [blame] | 23 | 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 Turner | 891af04 | 2015-03-13 20:55:07 +0000 | [diff] [blame] | 27 | except 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 Turner | b6355cc | 2018-11-02 17:49:01 +0000 | [diff] [blame] | 32 | lit_config.load_config(config, "@LLDB_SOURCE_DIR@/lit/lit.cfg.py") |