Skip to content

Commit

Permalink
enable jemalloc assertions when configured to do so
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jul 31, 2018
1 parent 70cac59 commit 872395a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/liballoc_jemalloc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit 872395a

Please sign in to comment.