Skip to content

Commit a005b67

Browse files
authored
Auto merge of #35187 - alexcrichton:only-orbit-off-stage1-and-two, r=eddyb
mk: Only pass -Zorbit=off in stage1/2 The stage0 compiler doesn't understand this option.
2 parents 32e462e + 2fd8044 commit a005b67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mk/main.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ endif
164164

165165
ifdef CFG_DISABLE_ORBIT
166166
$(info cfg: HOLD HOLD HOLD (CFG_DISABLE_ORBIT))
167-
CFG_RUSTC_FLAGS += -Z orbit=off
167+
RUSTFLAGS_STAGE1 += -Z orbit=off
168+
RUSTFLAGS_STAGE2 += -Z orbit=off
168169
endif
169170

170171
ifdef SAVE_TEMPS

0 commit comments

Comments
 (0)