[lld] [LLD][COFF] Require explicit specification of ARM64EC target (PR #116281)
Jacek Caban via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 15 06:49:59 PST 2024
================
@@ -46,6 +46,9 @@ static bool compatibleMachineType(COFFLinkerContext &ctx, MachineTypes mt) {
return COFF::isArm64EC(mt) || mt == AMD64;
case ARM64X:
return COFF::isAnyArm64(mt) || mt == AMD64;
+ case IMAGE_FILE_MACHINE_UNKNOWN:
+ // The ARM64EC target must be explicitly specified and cannot be inferred.
+ return !isArm64EC(mt);
----------------
cjacek wrote:
The call is not present with the new implementation.
https://github.com/llvm/llvm-project/pull/116281
More information about the llvm-commits
mailing list