[libc-commits] [libc] [libc] Add printf error handling (PR #162876)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Fri Oct 31 10:04:21 PDT 2025


================
@@ -32,6 +32,17 @@ if(printf_config_copts)
   list(PREPEND printf_config_copts "COMPILE_OPTIONS")
 endif()
 
+if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
+  add_subdirectory(${LIBC_TARGET_OS})
+else()
+  add_subdirectory(generic)
+endif()
+
+set(target_error_converter libc.src.stdio.printf_core.${LIBC_TARGET_OS}.${LIBC_TARGET_OS}_error_converter)
----------------
michaelrj-google wrote:

given that the target specific file in is in a target specific folder it might not need the target OS in the name.

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


More information about the libc-commits mailing list