[PATCH] D147581: [libc] Ensure that the `clang-offload-packager` is up-to-date for libc GPU

Joseph Huber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 4 16:22:54 PDT 2023


jhuber6 updated this revision to Diff 510960.
jhuber6 added a comment.

Adding `nvptx-arch` and `amdgpu-arch` as well.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147581/new/

https://reviews.llvm.org/D147581

Files:
  llvm/runtimes/CMakeLists.txt


Index: llvm/runtimes/CMakeLists.txt
===================================================================
--- llvm/runtimes/CMakeLists.txt
+++ llvm/runtimes/CMakeLists.txt
@@ -399,6 +399,9 @@
       # "libc" is detected in LLVM_ENABLE_RUNTIMES.
       message(FATAL_ERROR "libc-hdrgen target missing unexpectedly")
     endif()
+    if(LIBC_GPU_BUILD OR LIBC_GPU_ARCHITECTURES)
+      list(APPEND extra_deps clang-offload-packager nvptx-arch amdgpu-arch)
+    endif()
   endif()
   if(NOT LLVM_RUNTIME_TARGETS)
     runtime_default_target(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147581.510960.patch
Type: text/x-patch
Size: 538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230404/39af2a54/attachment.bin>


More information about the llvm-commits mailing list