[PATCH] D147654: [OpenMP] Add tool dependencies in runtimes mode
Joseph Huber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 5 13:15:12 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf5459fc03120: [OpenMP] Add tool dependencies in runtimes mode (authored by jhuber6).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147654/new/
https://reviews.llvm.org/D147654
Files:
llvm/runtimes/CMakeLists.txt
Index: llvm/runtimes/CMakeLists.txt
===================================================================
--- llvm/runtimes/CMakeLists.txt
+++ llvm/runtimes/CMakeLists.txt
@@ -361,12 +361,11 @@
# together in a single CMake invocation.
set(extra_deps "")
if("openmp" IN_LIST LLVM_ENABLE_RUNTIMES)
- if(TARGET opt)
- list(APPEND extra_deps opt)
- endif()
- if(TARGET llvm-link)
- list(APPEND extra_deps llvm-link)
- endif()
+ foreach(dep opt llvm-link llvm-extract clang clang-offload-packager)
+ if(TARGET ${dep} AND OPENMP_ENABLE_LIBOMPTARGET)
+ list(APPEND extra_deps ${dep})
+ endif()
+ endforeach()
endif()
if("libc" IN_LIST LLVM_ENABLE_RUNTIMES AND
(LLVM_LIBC_FULL_BUILD OR LIBC_GPU_BUILD OR LIBC_GPU_ARCHITECTURES))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147654.511195.patch
Type: text/x-patch
Size: 787 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230405/9c77304a/attachment.bin>
More information about the llvm-commits
mailing list