[libc-commits] [libc] 010c0d3 - [libc][AMDGPU] Disable %m in RPC server (#109317)
via libc-commits
libc-commits at lists.llvm.org
Thu Sep 19 11:33:27 PDT 2024
Author: Michael Jones
Date: 2024-09-19T13:33:23-05:00
New Revision: 010c0d36e1c8e25212dbbb7ed03dd6eb58b48f45
URL: https://github.com/llvm/llvm-project/commit/010c0d36e1c8e25212dbbb7ed03dd6eb58b48f45
DIFF: https://github.com/llvm/llvm-project/commit/010c0d36e1c8e25212dbbb7ed03dd6eb58b48f45.diff
LOG: [libc][AMDGPU] Disable %m in RPC server (#109317)
The RPC server directly includes the printf code, but doesn't support
errno, so the %m conversion needs to be disabled there as well. This
patch does that.
Added:
Modified:
libc/utils/gpu/server/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/utils/gpu/server/CMakeLists.txt b/libc/utils/gpu/server/CMakeLists.txt
index 13509dc3da3612..50056fb376b699 100644
--- a/libc/utils/gpu/server/CMakeLists.txt
+++ b/libc/utils/gpu/server/CMakeLists.txt
@@ -19,6 +19,7 @@ target_compile_definitions(llvmlibc_rpc_server PUBLIC
LIBC_COPT_ARRAY_ARG_LIST
LIBC_COPT_PRINTF_DISABLE_WRITE_INT
LIBC_COPT_PRINTF_DISABLE_INDEX_MODE
+ LIBC_COPT_PRINTF_DISABLE_STRERROR
LIBC_NAMESPACE=${LIBC_NAMESPACE})
# Install the server and associated header.
More information about the libc-commits
mailing list