Skip to content

Commit 872395a

Browse files
committed
enable jemalloc assertions when configured to do so
1 parent 70cac59 commit 872395a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/liballoc_jemalloc/build.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,10 @@ fn main() {
105105
cmd.arg("--with-jemalloc-prefix=je_");
106106
}
107107

108-
// FIXME: building with jemalloc assertions is currently broken.
109-
// See <https://github.com/rust-lang/rust/issues/44152>.
110-
//if cfg!(feature = "debug") {
111-
// cmd.arg("--enable-debug");
112-
//}
108+
if cfg!(feature = "debug") {
109+
// Enable jemalloc assertions.
110+
cmd.arg("--enable-debug");
111+
}
113112

114113
cmd.arg(format!("--host={}", build_helper::gnu_target(&target)));
115114
cmd.arg(format!("--build={}", build_helper::gnu_target(&host)));

0 commit comments

Comments
 (0)