about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-04-28 23:06:50 -0700
committerbors <bors@rust-lang.org>2014-04-28 23:06:50 -0700
commitcbe6bd0a9d8228a8a857223b9b9d69f75242f58f (patch)
treef3f57a8d61ef21f24a2fb83fce33326f8b7e4360 /src/rustllvm/RustWrapper.cpp
parent8fdf1e2cb8d5c54ada6b0ed223c76dd3e3d10c1a (diff)
parentedd8bb0aa191abcb5f8a3d6a6b03740907c6c54e (diff)
downloadrust-cbe6bd0a9d8228a8a857223b9b9d69f75242f58f.tar.gz
rust-cbe6bd0a9d8228a8a857223b9b9d69f75242f58f.zip
auto merge of #13829 : alexcrichton/rust/dead-strip, r=thestinger
This flag to the linker asks it to strip away all dead code during linking, as
well as dead data. This reduces the size of hello world from 1.7MB to 458K on my
system (70% reduction).

I have not seen this impact link times negatively, and I have seen this pass
'make check' successfully. I am slightly wary of adding this option, but the
benefits are so huge tha I think we should work hard to work around any issues
rather than avoid using the flag entirely.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions