[all-commits] [llvm/llvm-project] 46cfe5: [amdgpu-arch] Fix build of amdgpu-arch with CLANG_...

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu Mar 2 23:03:12 PST 2023


  Branch: refs/heads/release/16.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 46cfe51ef9d190d0b4ae0485f5c1e3d96055b5ef
      https://github.com/llvm/llvm-project/commit/46cfe51ef9d190d0b4ae0485f5c1e3d96055b5ef
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-03-02 (Thu, 02 Mar 2023)

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

  Log Message:
  -----------
  [amdgpu-arch] Fix build of amdgpu-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 HSA library.

(cherry picked from commit 067a5c68845c13d45e85ec9eaa11d2b2d829bab4)




More information about the All-commits mailing list