[compiler-rt] Conditionalise the addition of Aarch64 function Multi versioning support on aarch64 target (PR #143749)

Kerry McLaughlin via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 13 03:34:58 PDT 2025


================
@@ -884,7 +884,11 @@ else ()
   if(COMPILER_RT_DISABLE_AARCH64_FMV)
     list(APPEND BUILTIN_DEFS DISABLE_AARCH64_FMV)
   elseif(COMPILER_RT_BAREMETAL_BUILD)
-    list(APPEND BUILTIN_DEFS ENABLE_BAREMETAL_AARCH64_FMV)
+    foreach (arch ${BUILTIN_SUPPORTED_ARCH})
+      if("${arch}" STREQUAL "aarch64")
----------------
kmclaughlin-arm wrote:

This will miss some target names which may also require `ENABLE_BAREMETAL_AARCH64_FMV` (e.g. arm64, arm64ec). I think we can use something like this instead:

```suggestion
      if("${arch}" MATCHES "arm64|aarch64")
```

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


More information about the llvm-commits mailing list