[llvm-branch-commits] [clang] [clang] Add aarch64-unknown-uefi target (PR #232705)

Prabhu Rajasekaran via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Oct 19 12:49:04 PDT 2026


================
@@ -1900,6 +1900,56 @@ MinGWARM64TargetInfo::MinGWARM64TargetInfo(const llvm::Triple &Triple,
   TheCXXABI.set(TargetCXXABI::GenericAArch64);
 }
 
+UEFIAArch64TargetInfo::UEFIAArch64TargetInfo(const llvm::Triple &Triple,
----------------
Prabhuk wrote:

Same rationale as the path we took for X86_64. To keep UEFI triple from inheriting the Windows identity along with the Windows ABI. MicrosoftARM64TargetInfo sits on WindowsTargetInfo, so reusing it predefines `_WIN32/_WIN64/_M_ARM64/_MSC_VER`. With this change UEFI triple will only see `__UEFI__`.

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


More information about the llvm-branch-commits mailing list