[libc-commits] [libc] [libc] Implement strftime (PR #111305)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Tue Nov 12 11:29:09 PST 2024
================
@@ -138,3 +137,30 @@ add_entrypoint_object(
DEPENDS
.${LIBC_TARGET_OS}.gettimeofday
)
+
+add_subdirectory(strftime_core)
+
+add_entrypoint_object(
+ strftime
+ SRCS
+ strftime.cpp
+ HDRS
+ strftime.h
+ DEPENDS
+ libc.include.time
+ libc.src.time.strftime_core.strftime_main
+ libc.src.stdio.printf_core.writer
+)
+
+add_entrypoint_object(
+ strftime_l
+ SRCS
+ strftime_l.cpp
+ HDRS
+ strftime_l.h
+ DEPENDS
+ libc.include.time
+ libc.include.locale
+ libc.src.time.strftime_core.strftime_main
+ libc.src.stdio.printf_core.writer
+)
----------------
michaelrj-google wrote:
nit: missing a trailing newline
https://github.com/llvm/llvm-project/pull/111305
More information about the libc-commits
mailing list