[libc-commits] [libc] [LibC][RPC] Define LIBC_COPT_PRINTF_DISABLE_WIDE on Windows (PR #178482)
via libc-commits
libc-commits at lists.llvm.org
Wed Jan 28 10:54:26 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Jinsong Ji (jsji)
<details>
<summary>Changes</summary>
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
---
Full diff: https://github.com/llvm/llvm-project/pull/178482.diff
1 Files Affected:
- (modified) libc/src/__support/RPC/rpc_server.h (+4)
``````````diff
diff --git a/libc/src/__support/RPC/rpc_server.h b/libc/src/__support/RPC/rpc_server.h
index d06700a787e94..87b3f46e7f9df 100644
--- a/libc/src/__support/RPC/rpc_server.h
+++ b/libc/src/__support/RPC/rpc_server.h
@@ -37,6 +37,10 @@
#define LIBC_COPT_PRINTF_DISABLE_INDEX_MODE
#define LIBC_COPT_PRINTF_DISABLE_STRERROR
+#if defined(_WIN32)
+#define LIBC_COPT_PRINTF_DISABLE_WIDE
+#endif
+
// The 'long double' type is 8 bytes.
#define LIBC_TYPES_LONG_DOUBLE_IS_FLOAT64
``````````
</details>
https://github.com/llvm/llvm-project/pull/178482
More information about the libc-commits
mailing list