[libc-commits] [libc] [libc] Support %lc in printf (PR #169983)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Thu Dec 11 10:00:15 PST 2025
================
@@ -43,6 +43,14 @@ if(NOT TARGET ${target_error_mapper})
set(target_error_mapper libc.src.stdio.printf_core.generic.error_mapper)
endif()
+set(wchar_deps libc.src.__support.wchar.wcrtomb)
+set(wchar_compile_flags "")
+
+if(${LIBC_TARGET_OS} STREQUAL "windows" OR WIN32)
+ set(wchar_deps "")
+ list(APPEND wchar_compile_flags "-DLIBC_COPT_PRINTF_DISABLE_WIDE")
----------------
michaelrj-google wrote:
this flag should be controlled by an option in `config/config.json` similar to the other printf options. That way we can set it to false for windows platforms in the config instead of here.
https://github.com/llvm/llvm-project/pull/169983
More information about the libc-commits
mailing list