https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/195849
This was previously only printing the top level arch string. Print the full arch + subarch from the triple. >From 3de65b468944e62262b2e783e1e26b5225ca6ff6 Mon Sep 17 00:00:00 2001 From: Matt Arsenault <[email protected]> Date: Sat, 2 May 2026 10:38:33 +0100 Subject: [PATCH] clang: Report full triple arch string in --offload-arch diagnostic This was previously only printing the top level arch string. Print the full arch + subarch from the triple. --- clang/lib/Driver/Driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index a283abef09f32..6546e2a809dc9 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -4879,7 +4879,7 @@ Driver::getOffloadArchs(Compilation &C, const llvm::opt::DerivedArgList &Args, auto GPUsOrErr = TC.getSystemGPUArchs(Args); if (!GPUsOrErr) { TC.getDriver().Diag(diag::err_drv_undetermined_gpu_arch) - << llvm::Triple::getArchTypeName(TC.getArch()) + << TC.getTriple().getArchName() << llvm::toString(GPUsOrErr.takeError()) << "--offload-arch"; continue; } _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
