[clang] [clang] [MinGW] Handle linking ARM64EC code (PR #78912)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 21 12:27:07 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-driver
Author: Billy Laws (bylaws)
<details>
<summary>Changes</summary>
Depends on #<!-- -->78911.
CC: @<!-- -->cjacek
---
Full diff: https://github.com/llvm/llvm-project/pull/78912.diff
1 Files Affected:
- (modified) clang/lib/Driver/ToolChains/MinGW.cpp (+4-1)
``````````diff
diff --git a/clang/lib/Driver/ToolChains/MinGW.cpp b/clang/lib/Driver/ToolChains/MinGW.cpp
index 18fc9d4b6807e38..fded966484dfed8 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();
``````````
</details>
https://github.com/llvm/llvm-project/pull/78912
More information about the cfe-commits
mailing list