diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2017-03-17 02:04:22 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-03-17 02:04:22 +0000 |
commit | db7447deed0cc7470673b49d4dfbe38b0b1a5e9a (patch) | |
tree | 133d33a5edbfcf1d385c8d3a9892059dcaa3183f /lld/test | |
parent | a6ffbdd9221e58a0946b390039ff096c24bd4cb4 (diff) | |
download | bcm5719-llvm-db7447deed0cc7470673b49d4dfbe38b0b1a5e9a.tar.gz bcm5719-llvm-db7447deed0cc7470673b49d4dfbe38b0b1a5e9a.zip |
COFF: Do not create empty temporary archives for /msvclto.
The MSVC linker doesn't support them.
Differential Revision: https://reviews.llvm.org/D31067
llvm-svn: 298034
Diffstat (limited to 'lld/test')
-rw-r--r-- | lld/test/COFF/msvclto-archive.ll | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lld/test/COFF/msvclto-archive.ll b/lld/test/COFF/msvclto-archive.ll index 2597605260d..047b19e76dd 100644 --- a/lld/test/COFF/msvclto-archive.ll +++ b/lld/test/COFF/msvclto-archive.ll @@ -1,5 +1,7 @@ ;; Make sure we re-create archive files to strip bitcode files. +;; Do not create empty archives because the MSVC linker +;; doesn't support them. ; RUN: llvm-as -o %t.obj %s ; RUN: rm -f %t-main1.a ; RUN: llvm-ar cru %t-main1.a %t.obj @@ -8,7 +10,7 @@ ; RUN: lld-link %t-main1.a %t.dir/bitcode.obj /msvclto /out:%t.exe /opt:lldlto=1 /opt:icf \ ; RUN: /entry:main /verbose > %t.log || true ; RUN: FileCheck -check-prefix=BC %s < %t.log -; BC: Creating a temporary archive for +; BC-NOT: Creating a temporary archive for ; RUN: rm -f %t-main2.a ; RUN: llvm-ar cru %t-main2.a %t.dir/bitcode.obj |