Skip to content

Commit 1e49228

Browse files
authored
[Fuchsia] Include runtimes for armv8.1m.main-none-eabi (#116420)
These are needed by some of our users.
1 parent 47a0e24 commit 1e49228

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

clang/cmake/caches/Fuchsia-stage2.cmake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ if(FUCHSIA_SDK)
302302
set(LLVM_RUNTIME_MULTILIB_hwasan+noexcept_TARGETS "aarch64-unknown-fuchsia;riscv64-unknown-fuchsia" CACHE STRING "")
303303
endif()
304304

305-
foreach(target armv6m-none-eabi;armv7m-none-eabi;armv8m.main-none-eabi)
305+
foreach(target armv6m-none-eabi;armv7m-none-eabi;armv8m.main-none-eabi;armv8.1m.main-none-eabi)
306306
list(APPEND BUILTIN_TARGETS "${target}")
307307
set(BUILTINS_${target}_CMAKE_SYSTEM_NAME Generic CACHE STRING "")
308308
set(BUILTINS_${target}_CMAKE_SYSTEM_PROCESSOR arm CACHE STRING "")
@@ -313,6 +313,9 @@ foreach(target armv6m-none-eabi;armv7m-none-eabi;armv8m.main-none-eabi)
313313
if(${target} STREQUAL "armv8m.main-none-eabi")
314314
set(BUILTINS_${target}_CMAKE_${lang}_local_flags "${BUILTINS_${target}_CMAKE_${lang}_local_flags} -mfloat-abi=softfp -march=armv8m.main+fp+dsp -mcpu=cortex-m33" CACHE STRING "")
315315
endif()
316+
if(${target} STREQUAL "armv8.1m.main-none-eabi")
317+
set(BUILTINS_${target}_CMAKE_${lang}_local_flags "${BUILTINS_${target}_CMAKE_${lang}_local_flags} -mfloat-abi=hard -march=armv8.1-m.main+mve.fp+fp.dp -mcpu=cortex-m55" CACHE STRING "")
318+
endif()
316319
set(BUILTINS_${target}_CMAKE_${lang}_FLAGS "${BUILTINS_${target}_CMAKE_${lang}_local_flags}" CACHE STRING "")
317320
endforeach()
318321
foreach(type SHARED;MODULE;EXE)
@@ -333,6 +336,9 @@ foreach(target armv6m-none-eabi;armv7m-none-eabi;armv8m.main-none-eabi)
333336
if(${target} STREQUAL "armv8m.main-none-eabi")
334337
set(RUNTIMES_${target}_CMAKE_${lang}_local_flags "${RUNTIMES_${target}_CMAKE_${lang}_local_flags} -mfloat-abi=softfp -march=armv8m.main+fp+dsp -mcpu=cortex-m33" CACHE STRING "")
335338
endif()
339+
if(${target} STREQUAL "armv8.1m.main-none-eabi")
340+
set(RUNTIMES_${target}_CMAKE_${lang}_local_flags "${RUNTIMES_${target}_CMAKE_${lang}_local_flags} -mfloat-abi=hard -march=armv8.1-m.main+mve.fp+fp.dp -mcpu=cortex-m55" CACHE STRING "")
341+
endif()
336342
set(RUNTIMES_${target}_CMAKE_${lang}_FLAGS "${RUNTIMES_${target}_CMAKE_${lang}_local_flags}" CACHE STRING "")
337343
endforeach()
338344
foreach(type SHARED;MODULE;EXE)

0 commit comments

Comments
 (0)