File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -561,12 +561,23 @@ set(aarch64_SOURCES
561
561
aarch64/fp_mode.c
562
562
)
563
563
564
- if (COMPILER_RT_HAS_AARCH64_SME AND COMPILER_RT_HAS_FNO_BUILTIN_FLAG AND (COMPILER_RT_HAS_AUXV OR COMPILER_RT_BAREMETAL_BUILD ))
565
- list (APPEND aarch64_SOURCES aarch64/sme-abi.S aarch64/sme-abi-init.c aarch64/sme-abi-vg.c aarch64/sme-libc-routines.c )
566
- message (STATUS "AArch64 SME ABI routines enabled" )
567
- set_source_files_properties (aarch64/sme-libc-routines.c PROPERTIES COMPILE_FLAGS "-fno-builtin" )
568
- else ()
569
- message (STATUS "AArch64 SME ABI routines disabled" )
564
+ if (COMPILER_RT_HAS_AARCH64_SME )
565
+ if (NOT COMPILER_RT_DISABLE_AARCH64_FMV AND COMPILER_RT_HAS_FNO_BUILTIN_FLAG AND (COMPILER_RT_HAS_AUXV OR COMPILER_RT_BAREMETAL_BUILD ))
566
+ list (APPEND aarch64_SOURCES aarch64/sme-abi.S aarch64/sme-abi-init.c aarch64/sme-abi-vg.c aarch64/sme-libc-routines.c )
567
+ message (STATUS "AArch64 SME ABI routines enabled" )
568
+ set_source_files_properties (aarch64/sme-libc-routines.c PROPERTIES COMPILE_FLAGS "-fno-builtin" )
569
+ else ()
570
+ if (COMPILER_RT_DISABLE_AARCH64_FMV )
571
+ message (WARNING "AArch64 SME ABI routines require function multiversioning support." )
572
+ endif ()
573
+ if (NOT COMPILER_RT_HAS_FNO_BUILTIN_FLAG )
574
+ message (WARNING "AArch64 SME ABI routines require '-fno-builtin'" )
575
+ endif ()
576
+ if (NOT (COMPILER_RT_HAS_AUXV OR COMPILER_RT_BAREMETAL_BUILD ))
577
+ message (WARNING "AArch64 SME ABI routines requires sys/auxv.h or COMPILER_RT_BAREMETAL_BUILD flag" )
578
+ endif ()
579
+ message (STATUS "AArch64 SME ABI routines disabled" )
580
+ endif ()
570
581
endif ()
571
582
572
583
# Generate outline atomics helpers from lse.S base
You can’t perform that action at this time.
0 commit comments