[clang] [llvm] Reland [clang][AArch64] Add getHostCPUFeatures to query for enabled f… (PR #115467)

Sjoerd Meijer via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 11 08:47:56 PST 2024


================
@@ -210,6 +210,9 @@ def have_host_clang_repl_cuda():
 config.substitutions.append(("%host_cc", config.host_cc))
 config.substitutions.append(("%host_cxx", config.host_cxx))
 
+# Determine whether the test target is compatible with execution on the host.
+if config.host_arch in config.target_triple:
+    config.available_features.add("host-arch-compatible")
----------------
sjoerdmeijer wrote:

One nit that could be considered before committing: maybe `host-target-compatible` is slightly more descriptive?

https://github.com/llvm/llvm-project/pull/115467


More information about the cfe-commits mailing list