diff options
author | Eli Friedman <efriedma@quicinc.com> | 2019-03-12 02:20:01 +0000 |
---|---|---|
committer | Eli Friedman <efriedma@quicinc.com> | 2019-03-12 02:20:01 +0000 |
commit | 5b1027a908c1fdda0e941edca18d5563370accfb (patch) | |
tree | f80f2743312581faa1a1ef63d1302ab05910e341 | |
parent | b5a307fa244f8cceaaa3735a37ff3cedfdf499cb (diff) | |
download | bcm5719-llvm-5b1027a908c1fdda0e941edca18d5563370accfb.tar.gz bcm5719-llvm-5b1027a908c1fdda0e941edca18d5563370accfb.zip |
Fix test to unconditionally create a GNU-format archive.
On Darwin targets, llvm-ar creates a Darwin format archive by default,
which ld.lld can't read, so it was printing an unexpected error.
llvm-svn: 355894
-rw-r--r-- | lld/test/ELF/invalid/invalid-elf.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/test/ELF/invalid/invalid-elf.test b/lld/test/ELF/invalid/invalid-elf.test index 583703c0a0b..95c7c3976a8 100644 --- a/lld/test/ELF/invalid/invalid-elf.test +++ b/lld/test/ELF/invalid/invalid-elf.test @@ -2,7 +2,7 @@ # RUN: rm -rf %t && mkdir -p %t # RUN: llvm-mc %s -o %t/simple.o -filetype=obj -triple x86_64-pc-linux # RUN: echo > %t/empty.o -# RUN: llvm-ar cr %t/not-elf.a %t/empty.o +# RUN: llvm-ar --format=gnu cr %t/not-elf.a %t/empty.o # RUN: not ld.lld %t/simple.o %t/not-elf.a -o %t2 2>&1 | \ # RUN: FileCheck --check-prefix=NOT-ELF %s |