[amdgpu-arch] Fix build of amdgpu-arch with CLANG_LINK_CLANG_DYLIB
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 10 Feb 2023 14:22:05 +0000 (08:22 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 10 Feb 2023 14:23:49 +0000 (08:23 -0600)
commit067a5c68845c13d45e85ec9eaa11d2b2d829bab4
treeb946ee6f87f941f9d33aaa5f5cd45b57c36b4998
parentb252824e6e6ee0959051841e583860ba7ed1cd67
[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.
clang/tools/amdgpu-arch/CMakeLists.txt