[libc-commits] [libc] [libc] Support %lc in printf (PR #169983)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Tue Jan 6 10:02:34 PST 2026
================
@@ -43,6 +43,26 @@ if(NOT TARGET ${target_error_mapper})
set(target_error_mapper libc.src.stdio.printf_core.generic.error_mapper)
endif()
+if(LIBC_CONF_PRINTF_DISABLE_WIDE)
+ set(wchar_deps "")
+else()
+ set(wchar_deps
+ libc.hdr.types.wchar_t
+ libc.hdr.types.wint_t
+ libc.hdr.wchar_macros
+ libc.src.__support.wchar.wcrtomb
+ libc.src.__support.wchar.mbstate
+ )
+endif()
+
+if(LIBC_CONF_PRINTF_DISABLE_WIDE)
+ set(parser_wchar_deps "")
+else()
+ set(parser_wchar_deps
+ libc.hdr.types.wint_t
+ )
+endif()
----------------
michaelrj-google wrote:
I think it would be cleaner to combine these `if`s.
https://github.com/llvm/llvm-project/pull/169983
More information about the libc-commits
mailing list