[libc-commits] [libc] [libc] Add baremetal printf (PR #94078)
via libc-commits
libc-commits at lists.llvm.org
Fri May 31 17:48:50 PDT 2024
================
@@ -363,6 +363,41 @@ add_entrypoint_object(
libc.src.__support.File.platform_file
)
+list(APPEND printf_deps
+ libc.src.__support.arg_list
+ libc.src.stdio.printf_core.vfprintf_internal
+)
+
+if(LLVM_LIBC_FULL_BUILD)
+ list(APPEND printf_deps
+ libc.src.__support.File.file
+ libc.src.__support.File.platform_file
+ libc.src.__support.File.platform_stdout
+ )
+endif()
+
+add_entrypoint_object(
+ printf
+ SRCS
+ printf.cpp
+ HDRS
+ ../printf.h
+ DEPENDS
+ ${printf_deps}
+)
+
+add_entrypoint_object(
+ vprintf
+ SRCS
+ vprintf.cpp
+ HDRS
+ ../vprintf.h
+ DEPENDS
+ ${printf_deps}
+)
+
+message(STATUS "the printf deps are ${printf_deps}")
----------------
lntue wrote:
guard this message behind `LIBC_CMAKE_VERBOSE_LOGGING`?
https://github.com/llvm/llvm-project/pull/94078
More information about the libc-commits
mailing list