================
@@ -1226,11 +1233,19 @@ ToolChain::path_list 
ToolChain::getArchSpecificLibPaths() const {
 
   AddPath({getTriple().str()});
 
-  // Handle the legacy AMDGPU triple case as well.
-  if (getTriple().getArchName() == "amdgcn") {
+  // For AMDGPU, fall back to the subarch-stripped triple path, trying both the
+  // canonical "amdgpu" name and the legacy "amdgcn" name.
+  //
+  // TODO: Also try major subarch?
----------------
jhuber6 wrote:

We definitely need to get this logic in so we can search like 
`amdgpu-amd-amdhsa/9.0` or something.

https://github.com/llvm/llvm-project/pull/206482
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to