[lld] [LLD][COFF] Require explicit specification of ARM64EC target (PR #116281)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 15 04:25:05 PST 2024


================
@@ -74,13 +77,18 @@ void SymbolTable::addFile(InputFile *file) {
   }
 
   MachineTypes mt = file->getMachineType();
+  if (!compatibleMachineType(ctx, mt)) {
+    if (isArm64EC(mt))
+      error(toString(file) + ": incompatible machine type " + machineToStr(mt) +
----------------
mstorsjo wrote:

I.e., would it make sense to try to disambiguate these two cases here, for the sake of getting more easily understandable error messages?

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


More information about the llvm-commits mailing list