[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
Tue May 27 21:54:51 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:
If I'm understanding your point right, I think the question of what we support for compiler-rt in *general* is something I don't know. I can only speak for this SME feature test.
If I had to guess: the de-facto compiler we support has always been clang since the runtime was intended to be a companion, a la libgcc. It wasn't intended to always be rev-locked to a particular clang since before the monorepo transition it wasn't coupled at the svn level.
https://github.com/llvm/llvm-project/pull/141115
More information about the llvm-commits
mailing list