[clang] [clang] [MinGW] Handle linking ARM64EC code (PR #78912)
Billy Laws via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 21 12:26:37 PST 2024
https://github.com/bylaws created https://github.com/llvm/llvm-project/pull/78912
Depends on #78911.
CC: @cjacek
>From 9e72d5c3cd2be7e0967a3f9d7c0d1231e6e97128 Mon Sep 17 00:00:00 2001
From: Billy Laws <blaws05 at gmail.com>
Date: Wed, 18 Oct 2023 21:23:38 +0100
Subject: [PATCH] [clang] [MinGW] Handle linking ARM64EC code
---
clang/lib/Driver/ToolChains/MinGW.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/clang/lib/Driver/ToolChains/MinGW.cpp b/clang/lib/Driver/ToolChains/MinGW.cpp
index 18fc9d4b6807e3..fded966484dfed 100644
--- a/clang/lib/Driver/ToolChains/MinGW.cpp
+++ b/clang/lib/Driver/ToolChains/MinGW.cpp
@@ -132,7 +132,10 @@ void tools::MinGW::Linker::ConstructJob(Compilation &C, const JobAction &JA,
CmdArgs.push_back("thumb2pe");
break;
case llvm::Triple::aarch64:
- CmdArgs.push_back("arm64pe");
+ if (TC.getEffectiveTriple().isWindowsArm64EC())
+ CmdArgs.push_back("arm64ecpe");
+ else
+ CmdArgs.push_back("arm64pe");
break;
default:
D.Diag(diag::err_target_unknown_triple) << TC.getEffectiveTriple().str();
More information about the cfe-commits
mailing list