]> git.lizzy.rs Git - rust.git/commitdiff
mk: Only pass -Zorbit=off in stage1/2
authorAlex Crichton <alex@alexcrichton.com>
Tue, 2 Aug 2016 20:06:43 +0000 (13:06 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 2 Aug 2016 20:06:43 +0000 (13:06 -0700)
The stage0 compiler doesn't understand this option.

mk/main.mk

index 9a3a59ded35add8f81bce93744e6e6839a13d2b4..c6c3e70abc37ae50c2e7c0f56e1aab0ea0d9b11a 100644 (file)
@@ -164,7 +164,8 @@ endif
 
 ifdef CFG_DISABLE_ORBIT
   $(info cfg: HOLD HOLD HOLD (CFG_DISABLE_ORBIT))
-  CFG_RUSTC_FLAGS += -Z orbit=off
+  RUSTFLAGS_STAGE1 += -Z orbit=off
+  RUSTFLAGS_STAGE2 += -Z orbit=off
 endif
 
 ifdef SAVE_TEMPS