[all-commits] [llvm/llvm-project] f3c934: Fix build of nvptx-arch with CLANG_LINK_CLANG_DYLIB

Jonas Hahnfeld via All-commits all-commits at lists.llvm.org
Thu Dec 29 00:48:27 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3c9342a3d56e1782e3b6db081401af334648492
      https://github.com/llvm/llvm-project/commit/f3c9342a3d56e1782e3b6db081401af334648492
  Author: Jonas Hahnfeld <hahnjo at hahnjo.de>
  Date:   2022-12-29 (Thu, 29 Dec 2022)

  Changed paths:
    M clang/tools/nvptx-arch/CMakeLists.txt

  Log Message:
  -----------
  Fix build of nvptx-arch with CLANG_LINK_CLANG_DYLIB

The function clang_target_link_libraries must only be used with real
Clang libraries; with CLANG_LINK_CLANG_DYLIB, it will instead link in
clang-cpp. We must use the standard CMake target_link_libraries for
the CUDA library.




More information about the All-commits mailing list