From d8bdd590cd688928f06bffa1e496827f76fe4222 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Thu, 20 Nov 2025 20:36:10 +0000 Subject: [PATCH] [libc] Removed unused flags from baremetal cache files These flags are not needed for building libc. --- libc/cmake/caches/armv6m-none-eabi.cmake | 2 +- libc/cmake/caches/armv7em-none-eabi.cmake | 2 +- libc/cmake/caches/armv7m-none-eabi.cmake | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libc/cmake/caches/armv6m-none-eabi.cmake b/libc/cmake/caches/armv6m-none-eabi.cmake index 1f463ae5c0ead..d1d614655e557 100644 --- a/libc/cmake/caches/armv6m-none-eabi.cmake +++ b/libc/cmake/caches/armv6m-none-eabi.cmake @@ -2,7 +2,7 @@ set(CMAKE_SYSTEM_PROCESSOR arm CACHE STRING "") set(RUNTIMES_TARGET_TRIPLE "armv6m-none-eabi" CACHE STRING "") foreach(lang C;CXX;ASM) - set(CMAKE_${lang}_FLAGS "-march=armv6m -mcpu=cortex-m0plus -mfloat-abi=soft -Wno-atomic-alignment \"-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)\" \"-Dfprintf(stream, format, ...)=printf(format)\" \"-Dfputs(string, stream)=puts(string)\" -D_LIBCPP_PRINT=1" CACHE STRING "") + set(CMAKE_${lang}_FLAGS "-march=armv6m -mcpu=cortex-m0plus -mfloat-abi=soft -Wno-atomic-alignment" CACHE STRING "") endforeach() include(${CMAKE_CURRENT_LIST_DIR}/baremetal_common.cmake) diff --git a/libc/cmake/caches/armv7em-none-eabi.cmake b/libc/cmake/caches/armv7em-none-eabi.cmake index afbe9c87dffe1..2b6df8fdf40ab 100644 --- a/libc/cmake/caches/armv7em-none-eabi.cmake +++ b/libc/cmake/caches/armv7em-none-eabi.cmake @@ -2,7 +2,7 @@ set(CMAKE_SYSTEM_PROCESSOR arm CACHE STRING "") set(RUNTIMES_TARGET_TRIPLE "armv7em-none-eabi" CACHE STRING "") foreach(lang C;CXX;ASM) - set(CMAKE_${lang}_FLAGS "-march=armv7em -mcpu=cortex-m4 -mfloat-abi=soft -Wno-atomic-alignment \"-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)\" \"-Dfprintf(stream, format, ...)=printf(format)\" \"-Dfputs(string, stream)=puts(string)\" -D_LIBCPP_PRINT=1" CACHE STRING "") + set(CMAKE_${lang}_FLAGS "-march=armv7em -mcpu=cortex-m4 -mfloat-abi=soft -Wno-atomic-alignment" CACHE STRING "") endforeach() include(${CMAKE_CURRENT_LIST_DIR}/baremetal_common.cmake) diff --git a/libc/cmake/caches/armv7m-none-eabi.cmake b/libc/cmake/caches/armv7m-none-eabi.cmake index 796adb2f31148..fe76828fa529f 100644 --- a/libc/cmake/caches/armv7m-none-eabi.cmake +++ b/libc/cmake/caches/armv7m-none-eabi.cmake @@ -2,7 +2,7 @@ set(CMAKE_SYSTEM_PROCESSOR arm CACHE STRING "") set(RUNTIMES_TARGET_TRIPLE "armv7m-none-eabi" CACHE STRING "") foreach(lang C;CXX;ASM) - set(CMAKE_${lang}_FLAGS "-march=armv7m -mcpu=cortex-m4 -mfloat-abi=soft -Wno-atomic-alignment \"-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)\" \"-Dfprintf(stream, format, ...)=printf(format)\" \"-Dfputs(string, stream)=puts(string)\" -D_LIBCPP_PRINT=1" CACHE STRING "") + set(CMAKE_${lang}_FLAGS "-march=armv7m -mcpu=cortex-m4 -mfloat-abi=soft -Wno-atomic-alignment" CACHE STRING "") endforeach() include(${CMAKE_CURRENT_LIST_DIR}/baremetal_common.cmake)