Don't ICE if an archive isn't actually an archive

This commit is contained in:
William Throwe 2015-09-25 00:46:33 -04:00
parent 8fe79bdfda
commit eef6030c92
3 changed files with 12 additions and 4 deletions

View 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"