[clang] [clang] UEFI handle unsupported triples. (PR #124824)

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 28 15:56:19 PST 2025


================
@@ -637,6 +637,10 @@ static llvm::Triple computeTargetTriple(const Driver &D,
     }
   }
 
+  // Currently the only architecture supported by *-uefi triples are x86_64.
+  if(Target.isUEFI() && Target.getArch() != llvm::Triple::x86_64)
----------------
rnk wrote:

```suggestion
  if (Target.isUEFI() && Target.getArch() != llvm::Triple::x86_64)
```

https://github.com/llvm/llvm-project/pull/124824


More information about the cfe-commits mailing list