[libc-commits] [libc] [libc] Support %lc in printf (PR #169983)

Alexey Samsonov via libc-commits libc-commits at lists.llvm.org
Sun Dec 21 11:00:45 PST 2025


================
@@ -43,6 +43,19 @@ 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 "")
+  list(APPEND printf_config_copts "-DLIBC_COPT_PRINTF_DISABLE_WIDE")
----------------
vonosmas wrote:

See my question in the previous review round - we shouldn't set compile flags so deep in CMakeFiles, they should be set globally for the entire project, based on config values.

https://github.com/llvm/llvm-project/pull/169983


More information about the libc-commits mailing list