[libc-commits] [libc] d46729d - [libc] Do not include the RPC targets if we're not in GPU mode.

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Fri Apr 21 18:03:33 PDT 2023


Author: Joseph Huber
Date: 2023-04-21T20:03:19-05:00
New Revision: d46729ddd4cd415997f1a5be93ca0005885b8296

URL: https://github.com/llvm/llvm-project/commit/d46729ddd4cd415997f1a5be93ca0005885b8296
DIFF: https://github.com/llvm/llvm-project/commit/d46729ddd4cd415997f1a5be93ca0005885b8296.diff

LOG: [libc] Do not include the RPC targets if we're not in GPU mode.

Summary:
The RPC targets assume a GPU environment. Theoretically we can build
this in all cases, but it is unused in any other target so it shouldn't
be listed.

Added: 
    

Modified: 
    libc/src/__support/RPC/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/RPC/CMakeLists.txt b/libc/src/__support/RPC/CMakeLists.txt
index 9c578884c6a76..6bcec0f6526d6 100644
--- a/libc/src/__support/RPC/CMakeLists.txt
+++ b/libc/src/__support/RPC/CMakeLists.txt
@@ -1,3 +1,7 @@
+if(NOT LIBC_TARGET_ARCHITECTURE_IS_GPU)
+  return()
+endif()
+
 add_header_library(
   rpc
   HDRS


        


More information about the libc-commits mailing list