Skip to content

Commit

Permalink
[runtimes] Make sure that llvm-link is available to build cheetah or …
Browse files Browse the repository at this point in the history
…cilktools with LLVM runtimes.
  • Loading branch information
neboat committed Nov 5, 2024
1 parent 03218dd commit f14cde3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions llvm/runtimes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,13 @@ if(runtimes)
# The runtimes target is a configuration of all the runtime libraries
# together in a single CMake invocation.
set(extra_deps "")
if("cheetah" IN_LIST LLVM_ENABLE_RUNTIMES OR "cilktools" IN_LIST LLVM_ENABLE_RUNTIMES)
foreach(dep llvm-link clang)
if(TARGET ${dep})
list(APPEND extra_deps ${dep})
endif()
endforeach()
endif()
if("openmp" IN_LIST LLVM_ENABLE_RUNTIMES)
foreach(dep opt llvm-link llvm-extract clang clang-offload-packager)
if(TARGET ${dep} AND OPENMP_ENABLE_LIBOMPTARGET)
Expand Down

0 comments on commit f14cde3

Please sign in to comment.