[libc-commits] [libc] [libc][AMDGPU] Disable %m in RPC server (PR #109317)
via libc-commits
libc-commits at lists.llvm.org
Thu Sep 19 11:32:22 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Michael Jones (michaelrj-google)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/109317.diff
1 Files Affected:
- (modified) libc/utils/gpu/server/CMakeLists.txt (+1)
``````````diff
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.
``````````
</details>
https://github.com/llvm/llvm-project/pull/109317
More information about the libc-commits
mailing list