[libc-commits] [libc] [libc] Add putc, fputc, and fprintf to stdio/baremetal (PR #144567)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Tue Jun 17 19:28:44 PDT 2025


================
@@ -20,17 +43,27 @@ add_entrypoint_object(
     libc.include.stdio
 )
 
+add_entrypoint_object(
+  putc
+  SRCS
+    putc.cpp
+  HDRS
+    ../putc.h
+    write_utils.h
+  DEPENDS
+    libc.src.__support.CPP.string_view
+)
+
 add_entrypoint_object(
   printf
   SRCS
     printf.cpp
   HDRS
     ../printf.h
+    write_utils.h
----------------
petrhosek wrote:

This shouldn't be here since it's not part of `printf` implementation, you should be instead depending on `baremetal_write_utils`.

https://github.com/llvm/llvm-project/pull/144567


More information about the libc-commits mailing list