Lines Matching +full:check +full:- +full:clang +full:- +full:python

16 config.name = "cross-project-tests"
42 "debuginfo-tests",
43 "llgdb-tests",
84 llvm_config.use_clang(required=("clang" in config.llvm_enabled_projects))
90 if "compiler-rt" in config.llvm_enabled_projects:
91 config.available_features.add("compiler-rt")
93 # Check which debuggers are available:
105 config.cross_project_tests_src_root, "debuginfo-tests", "dexter", "dexter.py"
109 dexter_test_cmd += ' --lldb-executable "{}"'.format(lldb_path)
122 dependencies = ["clang", "lld-link"]
123 dexter_regression_test_builder = "clang-cl"
127 # Use lldb as the debugger on non-Windows platforms.
128 dependencies = ["clang", "lldb"]
129 dexter_regression_test_builder = "clang++"
131 dexter_regression_test_flags = "-O0 -glldb -std=gnu++11"
140 # regression tests we use clang to drive the linker, and so all flags will be
147 # ./path_to_py/python.exe ./path_to_dex/dexter.py test --fail-lt 1.0 -w --binary %t --debugger lldb --cflags '-O0 -g'
149 # "python", "dexter.py", test, fail_mode, builder, debugger, cflags, ldflags
154 "--fail-lt 1.0 -w",
155 "--debugger",
172 def add_host_triple(clang):
173 return "{} --target={}".format(clang, config.host_triple)
186 # Check if the targets set contains anything that looks like our host arch.
202 "PATHTOCLANG", add_host_triple(llvm_config.config.clang)
205 "PATHTOCLANGPP", add_host_triple(llvm_config.use_llvm_tool("clang++"))
208 "PATHTOCLANGCL", add_host_triple(llvm_config.use_llvm_tool("clang-cl"))
213 "debuginfo-tests project.".format(config.host_triple)
223 xcode_lldb_vers = subprocess.check_output(["xcrun", "lldb", "--version"]).decode(
224 "utf-8"
226 match = re.search(r"lldb-(\d+)", xcode_lldb_vers)
230 config.available_features.add("apple-lldb-pre-1000")
235 --version output is formatted unexpectedly.
238 # $ gdb --version
243 subprocess.check_output(["gdb", "--version"]).decode().splitlines()
258 """Return the default dwarf version string for clang on this (host) platform
261 # Get the flags passed by the driver and look for -dwarf-version.
262 cmd = f'{llvm_config.use_llvm_tool("clang")} -g -xc -c - -v -### --target={triple}'
264 match = re.search(r"-dwarf-version=(\d+)", stderr)
271 # Some cross-project-tests use gdb, but not all versions of gdb are compatible
272 # with clang's dwarf. Add feature `gdb-clang-incompatibility` to signal that
273 # there's an incompatibility between clang's default dwarf version for this
284 # Example for llgdb-tests, which use lldb on darwin but gdb elsewhere:
285 # XFAIL: !system-darwin && gdb-clang-incompatibility
286 config.available_features.add("gdb-clang-incompatibility")
292 llvm_config.feature_config([("--build-mode", {"Debug|RelWithDebInfo": "debug-info"})])
294 # Allow 'REQUIRES: XXX-registered-target' in tests.
296 config.available_features.add(arch.lower() + "-registered-target")