about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-08-12 19:42:41 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2019-08-14 05:39:53 -0400
commit6575a96198765d4fb38d9abf7d64fc817ef8e80b (patch)
treec25dd0c27d8562291b09fa8dd70a2f8e5cfb1e83 /src
parent2601c864878412814134f417b7a738e5ee8898f2 (diff)
downloadrust-6575a96198765d4fb38d9abf7d64fc817ef8e80b.tar.gz
rust-6575a96198765d4fb38d9abf7d64fc817ef8e80b.zip
Disable --cfg bootstrap in libcore
This is needed to permit us building core_arch which is a submodule dep
(so we can't snap it to the new beta compiler).
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/bin/rustc.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs
index 04a3dea5c87..1436096dd6e 100644
--- a/src/bootstrap/bin/rustc.rs
+++ b/src/bootstrap/bin/rustc.rs
@@ -110,7 +110,11 @@ fn main() {
 
     // Non-zero stages must all be treated uniformly to avoid problems when attempting to uplift
     // compiler libraries and such from stage 1 to 2.
-    if stage == "0" {
+    //
+    // FIXME: the fact that core here is excluded is due to core_arch from our stdarch submodule
+    // being broken on the beta compiler with bootstrap passed, so this is a temporary workaround
+    // (we've just snapped, so there are no cfg(bootstrap) related annotations in core).
+    if stage == "0" && crate_name != Some("core") {
         cmd.arg("--cfg").arg("bootstrap");
     }