]> git.lizzy.rs Git - rust.git/commitdiff
enable jemalloc assertions when configured to do so
authorRalf Jung <post@ralfj.de>
Tue, 31 Jul 2018 15:01:39 +0000 (17:01 +0200)
committerRalf Jung <post@ralfj.de>
Tue, 31 Jul 2018 15:01:39 +0000 (17:01 +0200)
src/liballoc_jemalloc/build.rs

index 0aa46dc6d205fa0976caf5a7bbd005abcd4b26e7..fbda425a70bf5d6388455a4a0014e58a0a13d1d0 100644 (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)));