[compiler-rt] [compiler-rt][cmake] Test COMPILER_RT_HAS_AARCH64_SME with arm64 (PR #141115)

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 5 14:04:59 PDT 2025


================
@@ -41,14 +41,14 @@ asm(\".arch armv8-a+lse\");
 asm(\"cas w0, w1, [x2]\");
 ")
 
-builtin_check_c_compiler_source(COMPILER_RT_HAS_AARCH64_SME
+builtin_check_c_compiler_source_with_flags(COMPILER_RT_HAS_AARCH64_SME
 "
 void foo(void)  __arm_streaming_compatible {
   asm(\".arch armv9-a+sme2\\n\"
       \"smstart\\n\"
       \"ldr zt0, [sp]\");
 }
-")
+" "-target aarch64-linux-gnu")
----------------
aemerson wrote:

I was under the impression that LLVM_ENABLE_PROJECTS wasn't supposed to be used anymore for compiler-rt and it was only a matter of time before support is removed completely. On that basis it seems the expectation is that eventually they become rev-locked. At which point some of these tests will become redundant except for ones check a particular target has been built.

And yes, I know that's a self-incriminating statement. I believe we are trying to move to LLVM_ENABLE_RUNTIMES but software is hard.

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


More information about the llvm-commits mailing list