================
@@ -1124,11 +1125,17 @@ ToolChain::getTargetSubDirPath(StringRef BaseDir) const 
{
   if (auto Path = getPathForTriple(T))
     return *Path;
 
-  // Handle the legacy AMDGPU triple case as well.
-  if (T.getArchName() == "amdgcn") {
-    llvm::Triple Canon(T);
-    Canon.setArchName("amdgpu");
-    if (auto Path = getPathForTriple(Canon))
+  if (T.isAMDGCN()) {
+    // Clear the subarch as a fallback.
+    // TODO: Remove this when libc and compiler-rt builds are migrated.
----------------
arsenm wrote:

The build structure needs reworking, it is still producing the flat single 
amdgpu name instead of subarch specific builds 

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