Mercurial > hg > CbC > CbC_llvm
comparison compiler-rt/test/lit.common.configured.in @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 (2022-11-09) |
parents | 79ff65ed7e25 |
children | 1f2b6ac9f198 |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
16 set_default("llvm_obj_root", "@LLVM_BINARY_DIR@") | 16 set_default("llvm_obj_root", "@LLVM_BINARY_DIR@") |
17 set_default("compiler_rt_src_root", "@COMPILER_RT_SOURCE_DIR@") | 17 set_default("compiler_rt_src_root", "@COMPILER_RT_SOURCE_DIR@") |
18 set_default("compiler_rt_obj_root", "@COMPILER_RT_BINARY_DIR@") | 18 set_default("compiler_rt_obj_root", "@COMPILER_RT_BINARY_DIR@") |
19 set_default("enable_per_target_runtime_dir", @LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_PYBOOL@) | 19 set_default("enable_per_target_runtime_dir", @LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_PYBOOL@) |
20 set_default("llvm_tools_dir", "@LLVM_TOOLS_DIR@") | 20 set_default("llvm_tools_dir", "@LLVM_TOOLS_DIR@") |
21 set_default("lit_tools_dir", "@LLVM_LIT_TOOLS_DIR@") | |
21 set_default("llvm_shlib_dir", "@LLVM_LIBRARY_OUTPUT_INTDIR@") | 22 set_default("llvm_shlib_dir", "@LLVM_LIBRARY_OUTPUT_INTDIR@") |
22 set_default("gnu_ld_executable", "@GNU_LD_EXECUTABLE@") | 23 set_default("gnu_ld_executable", "@GNU_LD_EXECUTABLE@") |
23 set_default("gold_executable", "@GOLD_EXECUTABLE@") | 24 set_default("gold_executable", "@GOLD_EXECUTABLE@") |
24 set_default("clang", "@COMPILER_RT_RESOLVED_TEST_COMPILER@") | 25 set_default("clang", "@COMPILER_RT_RESOLVED_TEST_COMPILER@") |
25 set_default("compiler_id", "@COMPILER_RT_TEST_COMPILER_ID@") | 26 set_default("compiler_id", "@COMPILER_RT_TEST_COMPILER_ID@") |
31 set_default("asan_shadow_scale", "@COMPILER_RT_ASAN_SHADOW_SCALE@") | 32 set_default("asan_shadow_scale", "@COMPILER_RT_ASAN_SHADOW_SCALE@") |
32 set_default("memprof_shadow_scale", "@COMPILER_RT_MEMPROF_SHADOW_SCALE@") | 33 set_default("memprof_shadow_scale", "@COMPILER_RT_MEMPROF_SHADOW_SCALE@") |
33 set_default("apple_platform", "osx") | 34 set_default("apple_platform", "osx") |
34 set_default("apple_platform_min_deployment_target_flag", "-mmacosx-version-min") | 35 set_default("apple_platform_min_deployment_target_flag", "-mmacosx-version-min") |
35 set_default("sanitizer_can_use_cxxabi", @SANITIZER_CAN_USE_CXXABI_PYBOOL@) | 36 set_default("sanitizer_can_use_cxxabi", @SANITIZER_CAN_USE_CXXABI_PYBOOL@) |
37 set_default("sanitizer_uses_static_cxxabi", @SANITIZER_USE_STATIC_CXX_ABI_PYBOOL@) | |
38 set_default("sanitizer_uses_static_unwind", @SANITIZER_USE_STATIC_LLVM_UNWINDER_PYBOOL@) | |
36 set_default("has_lld", @COMPILER_RT_HAS_LLD_PYBOOL@) | 39 set_default("has_lld", @COMPILER_RT_HAS_LLD_PYBOOL@) |
37 set_default("can_symbolize", @CAN_SYMBOLIZE@) | 40 set_default("can_symbolize", @CAN_SYMBOLIZE@) |
38 set_default("use_lld", @COMPILER_RT_TEST_USE_LLD_PYBOOL@) | 41 set_default("use_lld", @COMPILER_RT_TEST_USE_LLD_PYBOOL@) |
39 set_default("use_thinlto", False) | 42 set_default("use_thinlto", False) |
40 set_default("use_lto", config.use_thinlto) | 43 set_default("use_lto", config.use_thinlto) |
41 set_default("use_newpm", False) | |
42 set_default("android", @ANDROID_PYBOOL@) | 44 set_default("android", @ANDROID_PYBOOL@) |
43 set_default("android_api_level", "@ANDROID_API_LEVEL@") | 45 set_default("android_api_level", "@ANDROID_API_LEVEL@") |
44 set_default("android_serial", "@ANDROID_SERIAL_FOR_TESTING@") | 46 set_default("android_serial", "@ANDROID_SERIAL_FOR_TESTING@") |
45 set_default("android_files_to_push", []) | 47 set_default("android_files_to_push", []) |
46 set_default("have_rpc_xdr_h", @HAVE_RPC_XDR_H@) | 48 set_default("have_rpc_xdr_h", @HAVE_RPC_XDR_H@) |
66 set_default("have_zlib", "@LLVM_ENABLE_ZLIB@") | 68 set_default("have_zlib", "@LLVM_ENABLE_ZLIB@") |
67 set_default("libcxx_used", "@LLVM_LIBCXX_USED@") | 69 set_default("libcxx_used", "@LLVM_LIBCXX_USED@") |
68 | 70 |
69 # LLVM tools dir can be passed in lit parameters, so try to | 71 # LLVM tools dir can be passed in lit parameters, so try to |
70 # apply substitution. | 72 # apply substitution. |
71 try: | 73 config.llvm_tools_dir = lit_config.substitute(config.llvm_tools_dir) |
72 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params | 74 config.clang = lit_config.substitute(config.clang) |
73 config.clang = config.clang % lit_config.params | 75 config.compiler_rt_libdir = lit_config.substitute(config.compiler_rt_libdir) |
74 config.compiler_rt_libdir = config.compiler_rt_libdir % lit_config.params | |
75 except KeyError as e: | |
76 key, = e.args | |
77 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key)) | |
78 | 76 |
79 if not os.path.exists(config.clang): | 77 if not os.path.exists(config.clang): |
80 lit_config.fatal("Can't find compiler on path %r" % config.clang) | 78 lit_config.fatal("Can't find compiler on path %r" % config.clang) |
81 | 79 |
80 import lit.llvm | |
81 lit.llvm.initialize(lit_config, config) | |
82 | |
82 # Setup attributes common for all compiler-rt projects. | 83 # Setup attributes common for all compiler-rt projects. |
83 lit_config.load_config(config, "@COMPILER_RT_SOURCE_DIR@/test/lit.common.cfg.py") | 84 lit_config.load_config(config, "@COMPILER_RT_SOURCE_DIR@/test/lit.common.cfg.py") |