From a5ecceed1fbf512fbde09b30dc59f793547c4981 Mon Sep 17 00:00:00 2001 From: Alexandre Ganea Date: Thu, 7 Mar 2019 15:07:55 +0000 Subject: [PATCH] [LLD][COFF] Restrict the failifmismatch test to x86_64-windows-msvc because the ELF container doesn't support llvm.linker.options meta-data with only one operand. llvm-svn: 355602 --- lld/test/COFF/failifmismatch.test | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lld/test/COFF/failifmismatch.test b/lld/test/COFF/failifmismatch.test index 10634ffe7ca6..1cf77e47b035 100644 --- a/lld/test/COFF/failifmismatch.test +++ b/lld/test/COFF/failifmismatch.test @@ -1,3 +1,5 @@ +REQUIRES: x86 + RUN: lld-link /entry:main /subsystem:console /out:%t.exe \ RUN: %p/Inputs/ret42.obj @@ -10,8 +12,8 @@ RUN: %p/Inputs/ret42.obj /failifmismatch:k1=v1 /failifmismatch:k1=v1 RUN: not lld-link /entry:main /subsystem:console /out:%t.exe \ RUN: %p/Inputs/ret42.obj /failifmismatch:k1=v1 /failifmismatch:k1=v2 2>&1 | FileCheck %s -RUN: llc < %p/Inputs/failmismatch1.ll -filetype obj -o %t1.obj -RUN: llc < %p/Inputs/failmismatch2.ll -filetype obj -o %t2.obj +RUN: llc < %p/Inputs/failmismatch1.ll -mtriple x86_64-windows-msvc -filetype obj -o %t1.obj +RUN: llc < %p/Inputs/failmismatch2.ll -mtriple x86_64-windows-msvc -filetype obj -o %t2.obj RUN: not lld-link %t1.obj %t2.obj 2>&1 | FileCheck %s -check-prefix OBJ RUN: llvm-lib %t1.obj /out:%t.lib