about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-04-28 13:20:08 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-04-28 13:20:08 -0700
commitedd8bb0aa191abcb5f8a3d6a6b03740907c6c54e (patch)
tree2e871ab25b5c06f3d100fd0508c82220c8d80348 /src/rustllvm/RustWrapper.cpp
parentff25d62165cbd74e98c569aa74feedbb3ca181e3 (diff)
downloadrust-edd8bb0aa191abcb5f8a3d6a6b03740907c6c54e.tar.gz
rust-edd8bb0aa191abcb5f8a3d6a6b03740907c6c54e.zip
rustc: Pass -dead_strip on OSX
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