]> git.lizzy.rs Git - rust.git/commitdiff
Issue #30592: Restore build in --disable-jemalloc mode.
authorSimon Martin <simartin@users.sourceforge.net>
Thu, 31 Dec 2015 17:13:39 +0000 (18:13 +0100)
committerSimon Martin <simartin@users.sourceforge.net>
Wed, 13 Jan 2016 20:15:00 +0000 (21:15 +0100)
src/liballoc/lib.rs

index 93b84cdedd4cdedab7f36ecc0edde86e9ea8aec6..69f74ba73bb4f14e7b5bfd15bef8a69261428625 100644 (file)
 
 #![feature(needs_allocator)]
 
+// Issue# 30592: Systematically use alloc_system during stage0 since jemalloc
+// might be unavailable or disabled
+#![cfg_attr(stage0, feature(alloc_system))]
+
 #![cfg_attr(test, feature(test, rustc_private, box_heap))]
 
+#[cfg(stage0)]
+extern crate alloc_system;
+
 // Allow testing this library
 
 #[cfg(test)]