about summary refs log tree commit diff
path: root/src/liballoc_jemalloc
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-02-11 11:06:31 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-02-14 11:45:59 -0800
commitcc719d2d7d1967b92e38b1dec6d19f10c5b42891 (patch)
treebe6e36c82df4d0a9449bba55002136ef9c9044ca /src/liballoc_jemalloc
parent12a68e6af31a32c52785298f036543caa96d24d3 (diff)
downloadrust-cc719d2d7d1967b92e38b1dec6d19f10c5b42891.tar.gz
rust-cc719d2d7d1967b92e38b1dec6d19f10c5b42891.zip
trans: Don't link whole rlibs to executables
Back in 9bc8e6d14 the linking of rlibs changed to using the `link_whole_rlib`
function. This change, however was only intended to affect dylibs, not
executables. For executables we don't actually want to link entire rlibs because
we want the linker to strip out as much as possible.

This commit adds a conditional to this logic to only link entire rlibs if we're
creating a dylib, and otherwise an executable just links an rlib as usual. A
test is included which will fail to link if this behavior is reverted.
Diffstat (limited to 'src/liballoc_jemalloc')
0 files changed, 0 insertions, 0 deletions