]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #12379 : alexcrichton/rust/fix-ar-thing, r=brson
authorbors <bors@rust-lang.org>
Wed, 19 Feb 2014 18:21:50 +0000 (10:21 -0800)
committerbors <bors@rust-lang.org>
Wed, 19 Feb 2014 18:21:50 +0000 (10:21 -0800)
When creating a staticlib, it unzips all static archives it finds and then
inserts the files manually into the output file. This process is done through
`ar`, and `ar` doesn't like if you specify you want to add files and you don't
give it any files.

This case arose whenever you linked to an archive that didn't have any contents
or all of the contents were filtered out. This just involved ignoring the case
where the number of inputs we have is 0, because we don't have any files to add
anyway.


Trivial merge