[libc-commits] [libc] [libc] Install RPC server to `shared/rpc.h` (PR #120170)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Mon Dec 16 17:45:19 PST 2024
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/120170
Summary:
This installs the shared header to the users installation. I couldn't
decide if this should be a standalone thing or use the existing support
in `include/` mostly because this is completely separate from hdrgen
stuff and it's C++.
>From 89f74282a5aff5fb2f36ac1049550c1b06eb322f Mon Sep 17 00:00:00 2001
From: Joseph Huber <huberjn at outlook.com>
Date: Mon, 16 Dec 2024 19:43:50 -0600
Subject: [PATCH] [libc] Install RPC server to `shared/rpc.h`
Summary:
This installs the shared header to the users installation. I couldn't
decide if this should be a standalone thing or use the existing support
in `include/` mostly because this is completely separate from hdrgen
stuff and it's C++.
---
libc/utils/gpu/server/CMakeLists.txt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libc/utils/gpu/server/CMakeLists.txt b/libc/utils/gpu/server/CMakeLists.txt
index b1cada44cd3279..a109d603318b6b 100644
--- a/libc/utils/gpu/server/CMakeLists.txt
+++ b/libc/utils/gpu/server/CMakeLists.txt
@@ -23,6 +23,11 @@ target_compile_definitions(llvmlibc_rpc_server PUBLIC
LIBC_NAMESPACE=${LIBC_NAMESPACE})
# Install the server and associated header.
+install(FILES ${LIBC_SOURCE_DIR}/shared/rpc.h
+ ${LIBC_SOURCE_DIR}/shared/rpc_util.h
+ ${LIBC_SOURCE_DIR}/shared/rpc_opcodes.h
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/shared
+ COMPONENT libc-headers)
install(TARGETS llvmlibc_rpc_server
ARCHIVE DESTINATION "lib${LLVM_LIBDIR_SUFFIX}"
COMPONENT libc)
More information about the libc-commits
mailing list