[libc-commits] [libc] f6f4744 - [libc] Install RPC server to `shared/rpc.h` (#120170)
via libc-commits
libc-commits at lists.llvm.org
Tue Dec 17 05:45:17 PST 2024
Author: Joseph Huber
Date: 2024-12-17T07:45:13-06:00
New Revision: f6f4744176c8838a55fabd6f978ac08c3612aabc
URL: https://github.com/llvm/llvm-project/commit/f6f4744176c8838a55fabd6f978ac08c3612aabc
DIFF: https://github.com/llvm/llvm-project/commit/f6f4744176c8838a55fabd6f978ac08c3612aabc.diff
LOG: [libc] Install RPC server to `shared/rpc.h` (#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++.
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 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