rust/mk
bors f59fd46425 Auto merge of #31846 - alexcrichton:better-disable-jemallc, r=brson
The `--disable-jemalloc` configure option has a failure mode where it will
create a distribution that is not compatible with other compilers. For example
the nightly for Linux will assume that it will link to jemalloc by default as
an allocator for executable crates. If, however, a standard library is used
which was built via `./configure --disable-jemalloc` then this will fail
because the jemalloc crate wasn't built.

While this seems somewhat reasonable as a niche situation, the same mechanism is
used for disabling jemalloc for platforms that just don't support it. For
example if the rumprun target is compiled then the sibiling Linux target *also*
doesn't have jemalloc. This is currently a problem for our cross-build nightlies
which build many targets. If rumprun is also built, it will disable jemalloc for
all targets, which isn't desired.

This commit moves the platform-specific disabling of jemalloc as hardcoded logic
into the makefiles that is scoped per-platform. This way when configuring
multiple targets **without the `--disable-jemalloc` option specified** all
targets will get jemalloc as they should.
2016-02-26 13:38:46 +00:00
..
cfg Auto merge of #31846 - alexcrichton:better-disable-jemallc, r=brson 2016-02-26 13:38:46 +00:00
clean.mk
crates.mk mk: Move disable-jemalloc logic into makefiles 2016-02-25 21:05:59 -08:00
ctags.mk
debuggers.mk
dist.mk mk: Add missing rustbuild dirs to dist 2016-02-20 18:34:07 -08:00
docs.mk mk: Move disable-jemalloc logic into makefiles 2016-02-25 21:05:59 -08:00
grammar.mk Revert "mk: fix some undefined variable warnings" 2016-02-01 23:27:04 -08:00
host.mk mk: Move disable-jemalloc logic into makefiles 2016-02-25 21:05:59 -08:00
install.mk mk: Move disable-jemalloc logic into makefiles 2016-02-25 21:05:59 -08:00
llvm.mk rustc_llvm: Tweak how initialization is performed 2016-02-11 11:12:33 -08:00
main.mk mk: Move disable-jemalloc logic into makefiles 2016-02-25 21:05:59 -08:00
platform.mk mk: Move disable-jemalloc logic into makefiles 2016-02-25 21:05:59 -08:00
prepare.mk mk: Move disable-jemalloc logic into makefiles 2016-02-25 21:05:59 -08:00
reconfig.mk
rt.mk std: Stop prefixing jemalloc symbols 2016-02-14 11:50:40 -08:00
rustllvm.mk
snap.mk
stage0.mk
target.mk mk: Move disable-jemalloc logic into makefiles 2016-02-25 21:05:59 -08:00
tests.mk Auto merge of #31846 - alexcrichton:better-disable-jemallc, r=brson 2016-02-26 13:38:46 +00:00
util.mk