Skip to content

[Offload] Fix missing dependency on `clang-nvlink-wrapper' #137033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions llvm/runtimes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,8 @@ if(build_runtimes)
list(APPEND extra_cmake_args "-DCMAKE_PROGRAM_PATH=${CMAKE_PROGRAM_PATH}")
endif()

if("openmp" IN_LIST LLVM_ENABLE_RUNTIMES)
# TODO: We need to consider passing it as '-DRUNTIMES_x86_64_LLVM_ENABLE_RUNTIMES'.
if("openmp" IN_LIST LLVM_ENABLE_RUNTIMES OR "offload" IN_LIST LLVM_ENABLE_RUNTIMES)
if (${LLVM_TOOL_FLANG_BUILD})
message(STATUS "Configuring build of omp_lib.mod and omp_lib_kinds.mod via flang")
set(LIBOMP_FORTRAN_MODULES_COMPILER "${CMAKE_BINARY_DIR}/bin/flang")
Expand All @@ -526,7 +527,7 @@ if(build_runtimes)
# that all .mod files are also properly build.
list(APPEND extra_deps "flang" "module_files")
endif()
foreach(dep opt llvm-link llvm-extract clang clang-offload-packager)
foreach(dep opt llvm-link llvm-extract clang clang-offload-packager clang-nvlink-wrapper)
if(TARGET ${dep})
list(APPEND extra_deps ${dep})
endif()
Expand Down
Loading