Don't ICE if an archive isn't actually an archive
This commit is contained in:
parent
8fe79bdfda
commit
eef6030c92
3 changed files with 12 additions and 4 deletions
5
src/test/run-make/invalid-staticlib/Makefile
Normal file
5
src/test/run-make/invalid-staticlib/Makefile
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
-include ../tools.mk
|
||||
|
||||
all:
|
||||
touch $(TMPDIR)/libfoo.a
|
||||
echo | $(RUSTC) - --crate-type=rlib -lstatic=foo 2>&1 | grep "failed to add native library"
|
||||
Loading…
Add table
Add a link
Reference in a new issue