From e59fb9eb628d5c2242568731396259bf02d50768 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 8 Aug 2014 16:54:26 -0700 Subject: [PATCH] mk: Don't emit landing pads in stage 0. Reduces time to build stage0 from 11:30 to 9:40 on my machine. --- mk/main.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mk/main.mk b/mk/main.mk index 4d354908b689..2bdfc1bafd70 100644 --- a/mk/main.mk +++ b/mk/main.mk @@ -139,6 +139,10 @@ endif RUSTFLAGS_STAGE0 += -C prefer-dynamic RUSTFLAGS_STAGE1 += -C prefer-dynamic +# Landing pads require a lot of codegen. We can get through bootstrapping faster +# by not emitting them. +RUSTFLAGS_STAGE0 += -Z no-landing-pads + # platform-specific auto-configuration include $(CFG_SRC_DIR)mk/platform.mk