Mercurial > hg > CbC > CbC_llvm
comparison lld/test/lit.site.cfg.py.in @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 0572611fdcc8 |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 @LIT_SITE_CFG_IN_HEADER@ | |
2 | |
3 import lit.util | |
4 | |
5 config.have_dia_sdk = lit.util.pythonize_bool("@LLVM_ENABLE_DIA_SDK@") | |
6 config.llvm_src_root = "@LLVM_SOURCE_DIR@" | |
7 config.llvm_obj_root = "@LLVM_BINARY_DIR@" | |
8 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@" | |
9 config.llvm_libs_dir = "@LLVM_LIBS_DIR@" | |
10 config.llvm_libxml2_enabled = @LLVM_LIBXML2_ENABLED@ | |
11 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@" | |
12 config.lld_obj_root = "@LLD_BINARY_DIR@" | |
13 config.lld_libs_dir = "@LLVM_LIBRARY_OUTPUT_INTDIR@" | |
14 config.lld_tools_dir = "@LLVM_RUNTIME_OUTPUT_INTDIR@" | |
15 config.target_triple = "@TARGET_TRIPLE@" | |
16 config.python_executable = "@PYTHON_EXECUTABLE@" | |
17 config.have_zlib = @LLVM_ENABLE_ZLIB@ | |
18 config.sizeof_void_p = @CMAKE_SIZEOF_VOID_P@ | |
19 | |
20 # Support substitution of the tools and libs dirs with user parameters. This is | |
21 # used when we can't determine the tool dir at configuration time. | |
22 try: | |
23 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params | |
24 config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params | |
25 except KeyError as e: | |
26 key, = e.args | |
27 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) | |
28 | |
29 import lit.llvm | |
30 lit.llvm.initialize(lit_config, config) | |
31 | |
32 # Let the main config do the real work. | |
33 lit_config.load_config(config, "@LLD_SOURCE_DIR@/test/lit.cfg.py") |