about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-08-02 13:06:43 -0700
committerAlex Crichton <alex@alexcrichton.com>2016-08-02 13:06:43 -0700
commit2fd8044ceff8a42b09254ac7d5288e497d9b3778 (patch)
tree6ad44e76e141e00b66bfe95ead87bf18c7e589dd
parent32e462ef99e2f61b75e2b0ef37048d50ad8ccf6c (diff)
downloadrust-2fd8044ceff8a42b09254ac7d5288e497d9b3778.tar.gz
rust-2fd8044ceff8a42b09254ac7d5288e497d9b3778.zip
mk: Only pass -Zorbit=off in stage1/2
The stage0 compiler doesn't understand this option.
-rw-r--r--mk/main.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/main.mk b/mk/main.mk
index 9a3a59ded35..c6c3e70abc3 100644
--- a/mk/main.mk
+++ b/mk/main.mk
@@ -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