]> git.lizzy.rs Git - rust.git/commitdiff
Bring back stage0 allocator logic on MSVC
authorAlex Crichton <alex@alexcrichton.com>
Thu, 31 Aug 2017 14:07:54 +0000 (07:07 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 1 Sep 2017 01:20:52 +0000 (18:20 -0700)
I think there may still be bugs preventing its removal..

src/libstd/lib.rs
src/tools/tidy/src/pal.rs

index 9d17e142f6cd1e55ee15a29ac2019814e9905213..33bf0d68126d4c43f2ba4b24cc5cabcb102ae54c 100644 (file)
 // if the user has disabled jemalloc in `./configure`).
 // `force_alloc_system` is *only* intended as a workaround for local rebuilds
 // with a rustc without jemalloc.
-#![cfg_attr(any(stage0, feature = "force_alloc_system"),
+// FIXME(#44236) shouldn't need MSVC logic
+#![cfg_attr(all(not(target_env = "msvc"),
+                any(stage0, feature = "force_alloc_system")),
             feature(global_allocator))]
-#[cfg(any(stage0, feature = "force_alloc_system"))]
+#[cfg(all(not(target_env = "msvc"),
+          any(stage0, feature = "force_alloc_system")))]
 #[global_allocator]
 static ALLOC: alloc_system::System = alloc_system::System;
 
index 7011d7f64e786a9d60ea0b08b53790877d36743c..8092a9e156bebf2c9b4f2efd868b885a9b123cec 100644 (file)
@@ -65,6 +65,7 @@
     "src/rtstartup", // Not sure what to do about this. magic stuff for mingw
 
     // temporary exceptions
+    "src/libstd/lib.rs", // FIXME(#44217)
     "src/libstd/path.rs",
     "src/libstd/f32.rs",
     "src/libstd/f64.rs",