Skip to content

Commit 975ec83

Browse files
[compiler-rt] Only build SME ABI routines for baremetal or platforms that have sys/auxv.h (#69423)
This avoids link failures on other platorms that don't (yet) have an implementation of __aarch64_sme_accessible.
1 parent d7246c1 commit 975ec83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/lib/builtins/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,9 @@ set(aarch64_SOURCES
555555
aarch64/fp_mode.c
556556
)
557557

558-
if(COMPILER_RT_HAS_ASM_SME)
558+
if(COMPILER_RT_HAS_ASM_SME AND (COMPILER_RT_HAS_AUXV OR COMPILER_RT_BAREMETAL_BUILD))
559559
list(APPEND aarch64_SOURCES aarch64/sme-abi.S aarch64/sme-abi-init.c)
560+
message(STATUS "AArch64 SME ABI routines enabled")
560561
else()
561562
message(STATUS "AArch64 SME ABI routines disabled")
562563
endif()

0 commit comments

Comments
 (0)