f59fd46425
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. |
||
---|---|---|
.. | ||
aarch64-apple-ios.mk | ||
aarch64-linux-android.mk | ||
aarch64-unknown-linux-gnu.mk | ||
arm-linux-androideabi.mk | ||
arm-unknown-linux-gnueabi.mk | ||
arm-unknown-linux-gnueabihf.mk | ||
armv7-apple-ios.mk | ||
armv7-unknown-linux-gnueabihf.mk | ||
armv7s-apple-ios.mk | ||
asmjs-unknown-emscripten.mk | ||
i386-apple-ios.mk | ||
i586-unknown-linux-gnu.mk | ||
i686-apple-darwin.mk | ||
i686-linux-android.mk | ||
i686-pc-windows-gnu.mk | ||
i686-pc-windows-msvc.mk | ||
i686-unknown-freebsd.mk | ||
i686-unknown-linux-gnu.mk | ||
i686-unknown-linux-musl.mk | ||
le32-unknown-nacl.mk | ||
mips-unknown-linux-gnu.mk | ||
mips-unknown-linux-musl.mk | ||
mipsel-unknown-linux-gnu.mk | ||
mipsel-unknown-linux-musl.mk | ||
powerpc64-unknown-linux-gnu.mk | ||
powerpc64le-unknown-linux-gnu.mk | ||
powerpc-unknown-linux-gnu.mk | ||
x86_64-apple-darwin.mk | ||
x86_64-apple-ios.mk | ||
x86_64-pc-windows-gnu.mk | ||
x86_64-pc-windows-msvc.mk | ||
x86_64-rumprun-netbsd.mk | ||
x86_64-sun-solaris.mk | ||
x86_64-unknown-bitrig.mk | ||
x86_64-unknown-dragonfly.mk | ||
x86_64-unknown-freebsd.mk | ||
x86_64-unknown-linux-gnu.mk | ||
x86_64-unknown-linux-musl.mk | ||
x86_64-unknown-netbsd.mk | ||
x86_64-unknown-openbsd.mk |