From 7d9e26f78805c7363744e439d5734d6f4a3e033e Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 3 Aug 2017 23:39:23 -0700 Subject: [PATCH 1/2] Fix alloc_jemalloc debug feature At least, I think that's how it should be. 'debug' is how the feature is called in Cargo.toml. --- src/liballoc_jemalloc/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liballoc_jemalloc/build.rs b/src/liballoc_jemalloc/build.rs index 41193f6a41f89..2a8af60be007b 100644 --- a/src/liballoc_jemalloc/build.rs +++ b/src/liballoc_jemalloc/build.rs @@ -111,7 +111,7 @@ fn main() { cmd.arg("--with-jemalloc-prefix=je_"); } - if cfg!(feature = "debug-jemalloc") { + if cfg!(feature = "debug") { cmd.arg("--enable-debug"); } From 16fc74c6a2da63264a8477c84e34291bab10dd29 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 29 Aug 2017 16:09:38 +0200 Subject: [PATCH 2/2] give up on trying to fix the assertion failure --- src/liballoc_jemalloc/build.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/liballoc_jemalloc/build.rs b/src/liballoc_jemalloc/build.rs index 2a8af60be007b..c9bea2ecf5e9f 100644 --- a/src/liballoc_jemalloc/build.rs +++ b/src/liballoc_jemalloc/build.rs @@ -111,9 +111,11 @@ fn main() { cmd.arg("--with-jemalloc-prefix=je_"); } - if cfg!(feature = "debug") { - cmd.arg("--enable-debug"); - } + // FIXME: building with jemalloc assertions is currently broken. + // See . + //if cfg!(feature = "debug") { + // cmd.arg("--enable-debug"); + //} cmd.arg(format!("--host={}", build_helper::gnu_target(&target))); cmd.arg(format!("--build={}", build_helper::gnu_target(&host)));