[clang] [libc] [libc] Support opaque FILE* on baremetal (PR #168931)
Petr Hosek via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 20 10:59:29 PST 2025
================
@@ -341,7 +341,7 @@ foreach(target armv6m-none-eabi;armv7m-none-eabi;armv7em-none-eabi;armv8m.main-n
foreach(lang C;CXX;ASM)
# TODO: The preprocessor defines workaround various issues in libc and libc++ integration.
# These should be addressed and removed over time.
- set(RUNTIMES_${target}_CMAKE_${lang}_local_flags "--target=${target} -Wno-atomic-alignment \"-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)\" \"-Dfprintf(stream, format, ...)=printf(format)\" \"-Dfputs(string, stream)=puts(string)\" -D_LIBCPP_PRINT=1")
+ set(RUNTIMES_${target}_CMAKE_${lang}_local_flags "--target=${target} -Wno-atomic-alignment")
----------------
petrhosek wrote:
Those flags are only needed for building for libc++ which we don't do in those cache files, so we can remove those flags separately from this PR (I forgot to catch that in the review).
https://github.com/llvm/llvm-project/pull/168931
More information about the cfe-commits
mailing list