Skip to content

Commit 2fd8044

Browse files
committed
mk: Only pass -Zorbit=off in stage1/2
The stage0 compiler doesn't understand this option.
1 parent 32e462e commit 2fd8044

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)