Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adopt new HIP cmake's way of finding clang-rt
This is not strictly necessary anymore (as of ROCm >= 5.5), but we have internally observed the Check for CLANG_RT_LIBRARY failing for newer LLVM versions. Historically, this sort of relative pathing in CMake has caused issues (e.g., major LLVM versions occaisonally change the exact path to the clang-rt builtins). A more robust solution was adopted in the HIP CMake (see e.g., https://github.com/ROCm-Developer-Tools/hipamd/blob/d1e0ee98a0f3d79f7bf43295f82d0053a69ec742/hip-config.cmake.in#L241) that asks the CXX compiler specified by the user to print out the path to the library. We check the return code of that compiler call, and unset CLANG_RT_LIBRARY to fail as a find_package_handle_standard_args. Change-Id: If536364092db9c2bacc85c2f1bd15745efab9ada
- Loading branch information