[libc-commits] [libc] [libc] Add baremetal printf (PR #94078)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Tue Jun 4 15:50:56 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}")
----------------
michaelrj-google wrote:
Oops, that was a testing message I left in. I've deleted it now.
https://github.com/llvm/llvm-project/pull/94078
More information about the libc-commits
mailing list