about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-02-18 16:05:05 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-02-18 16:07:09 -0800
commit2eacc729e245972c3e162f144c0c4ef38c191146 (patch)
treea5c71698b57223d6c832c4f14ab36ab4563297b1 /src/rustllvm/PassWrapper.cpp
parent517e38997db9f60612676c9f83dab6ed35c1b5df (diff)
downloadrust-2eacc729e245972c3e162f144c0c4ef38c191146.tar.gz
rust-2eacc729e245972c3e162f144c0c4ef38c191146.zip
Fix staticlib outputs linking to blank archives
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.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions