Skip to content

Commit e59fb9e

Browse files
committed
mk: Don't emit landing pads in stage 0.
Reduces time to build stage0 from 11:30 to 9:40 on my machine.
1 parent 57630eb commit e59fb9e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mk/main.mk

+4
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ endif
139139
RUSTFLAGS_STAGE0 += -C prefer-dynamic
140140
RUSTFLAGS_STAGE1 += -C prefer-dynamic
141141

142+
# Landing pads require a lot of codegen. We can get through bootstrapping faster
143+
# by not emitting them.
144+
RUSTFLAGS_STAGE0 += -Z no-landing-pads
145+
142146
# platform-specific auto-configuration
143147
include $(CFG_SRC_DIR)mk/platform.mk
144148

0 commit comments

Comments
 (0)