[PATCH] D11015: LLD: COFF: Check for incompatible machine types

Rui Ueyama ruiu at google.com
Tue Jul 7 16:32:42 PDT 2015


================
Comment at: test/COFF/machine.test:21
@@ +20,3 @@
+# RUN: not lld -flavor link2 /entry:main /subsystem:console /machine:x86 \
+# RUN:   /out:%t.exe %p/Inputs/ret42.obj >& %t.log
+# RUN: FileCheck -check-prefix=INCOMPAT %s < %t.log
----------------
pcc wrote:
> ruiu wrote:
> > pcc wrote:
> > > This test does not use `%t.obj`. Did you intend to add another test here for the non-`/machine` case?
> > That's a mistake. I intended to use %t.obj instead of ret42.obj.
> Can you add another test that shows that we diagnose machine type conflicts between files without a `/machine` flag?
Sure, I will.


http://reviews.llvm.org/D11015







More information about the llvm-commits mailing list