[libc-commits] [libc] e6962bd - [LibC][RPC] Define LIBC_COPT_PRINTF_DISABLE_WIDE on Windows (#178482)

via libc-commits libc-commits at lists.llvm.org
Tue Feb 24 05:57:42 PST 2026


Author: Jinsong Ji
Date: 2026-02-24T08:57:38-05:00
New Revision: e6962bd1bbaa4925d3b84e3a7c5e2c6a87744e60

URL: https://github.com/llvm/llvm-project/commit/e6962bd1bbaa4925d3b84e3a7c5e2c6a87744e60
DIFF: https://github.com/llvm/llvm-project/commit/e6962bd1bbaa4925d3b84e3a7c5e2c6a87744e60.diff

LOG: [LibC][RPC] Define LIBC_COPT_PRINTF_DISABLE_WIDE on Windows (#178482)

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

RPC headers are being used directly from offload.
The default setting in config.json won't take effect.
Set it in the rpc_server.h

---------

Co-authored-by: Michael Jones <michaelrj at google.com>

Added: 
    

Modified: 
    libc/src/__support/RPC/rpc_server.h

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/RPC/rpc_server.h b/libc/src/__support/RPC/rpc_server.h
index d06700a787e94..8ea43c91826e6 100644
--- a/libc/src/__support/RPC/rpc_server.h
+++ b/libc/src/__support/RPC/rpc_server.h
@@ -37,6 +37,12 @@
 #define LIBC_COPT_PRINTF_DISABLE_INDEX_MODE
 #define LIBC_COPT_PRINTF_DISABLE_STRERROR
 
+// TODO: Remove this check once UTF-16 is supported. It may be necessary to add
+// additional targets for other systems that use UTF-16.
+#if defined(_WIN32)
+#define LIBC_COPT_PRINTF_DISABLE_WIDE
+#endif
+
 // The 'long double' type is 8 bytes.
 #define LIBC_TYPES_LONG_DOUBLE_IS_FLOAT64
 


        


More information about the libc-commits mailing list