File clang-prefer-rocm-tools.patch of Package rocm-llvm
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 5474454bb..6b1d01f0f 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -6565,6 +6565,7 @@ void Driver::generatePrefixedToolNames(
SmallVectorImpl<std::string> &Names) const {
// FIXME: Needs a better variable than TargetTriple
Names.emplace_back((TargetTriple + "-" + Tool).str());
+ Names.emplace_back((Tool + "-rocm").str());
Names.emplace_back(Tool);
}