diff options
| author | Ralf Jung <post@ralfj.de> | 2018-07-31 17:01:39 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2018-07-31 17:01:39 +0200 |
| commit | 872395a38ccced1b5e8d69cecf011ffb5a5f3ed8 (patch) | |
| tree | dc4fc288fe90c0243404bd0ef25c8a9b074bf1f8 /src/liballoc_jemalloc | |
| parent | 70cac59031d5c33962a1f53cdca9359c0dcd1f9f (diff) | |
| download | rust-872395a38ccced1b5e8d69cecf011ffb5a5f3ed8.tar.gz rust-872395a38ccced1b5e8d69cecf011ffb5a5f3ed8.zip | |
enable jemalloc assertions when configured to do so
Diffstat (limited to 'src/liballoc_jemalloc')
| -rw-r--r-- | src/liballoc_jemalloc/build.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/liballoc_jemalloc/build.rs b/src/liballoc_jemalloc/build.rs index 0aa46dc6d20..fbda425a70b 100644 --- a/src/liballoc_jemalloc/build.rs +++ b/src/liballoc_jemalloc/build.rs @@ -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))); |
