Auto merge of #52906 - RalfJung:jemalloc, r=alexcrichton

enable jemalloc assertions when configured to do so

This is essentially a re-submission of the functional part of https://github.com/rust-lang/rust/pull/43648. I was unable to reproduce the issue I had back then, maybe something changed somewhere to no longer trigger the assertion.

Fixes https://github.com/rust-lang/rust/issues/44152
This commit is contained in:
bors 2018-08-02 10:28:42 +00:00
commit 76aeeefdc2

View file

@ -105,11 +105,10 @@ fn main() {
cmd.arg("--with-jemalloc-prefix=je_");
}
// FIXME: building with jemalloc assertions is currently broken.
// See <https://github.com/rust-lang/rust/issues/44152>.
//if cfg!(feature = "debug") {
// cmd.arg("--enable-debug");
//}
if cfg!(feature = "debug") {
// Enable jemalloc assertions.
cmd.arg("--enable-debug");
}
cmd.arg(format!("--host={}", build_helper::gnu_target(&target)));
cmd.arg(format!("--build={}", build_helper::gnu_target(&host)));