[libc] Make the RPC server target always available
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 29 Jun 2023 16:23:47 +0000 (11:23 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 30 Jun 2023 16:30:57 +0000 (11:30 -0500)
commitdf52a22b1b7d912aeed8c79ecdb2e99f4189e4cb
tree418206f2000e81dfd29f139bc3cc171f55fcfc45
parent62f57bc9b0b03cdd8a2647e4960d7835b505429a
[libc] Make the RPC server target always available

This patch makes sure that we always build the RPC server. The proposed
used for this is to begin integrating this server implementation into
`libomptarget`. That requires that we build this server ahead of time
when using a `LLVM_ENABLE_PROJECTS` build. Make a few tweaks to ensure
that the GCC compiler which may be used for this build doesn't complain.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D154105
libc/CMakeLists.txt
libc/utils/gpu/server/CMakeLists.txt
libc/utils/gpu/server/rpc_server.h