File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,18 @@ RUST_LIB_FLAGS_ST3 += -C prefer-dynamic
172
172
# by not emitting them.
173
173
RUSTFLAGS_STAGE0 += -Z no-landing-pads
174
174
175
+ # Enable MIR to "always build" for crates where this works. This is
176
+ # just temporary while MIR is being actively built up -- it's just a
177
+ # poor man's unit testing infrastructure. Anyway we only want this for
178
+ # stage1/stage2.
179
+ define ADD_MIR_FLAG
180
+ RUSTFLAGS1_$(1 ) += -Z always-build-mir
181
+ RUSTFLAGS2_$(1 ) += -Z always-build-mir
182
+ endef
183
+ $(foreach crate,$(TARGET_CRATES),$(eval $(call ADD_MIR_FLAG,$(crate))))
184
+ $(foreach crate,$(RUSTC_CRATES),$(eval $(call ADD_MIR_FLAG,$(crate))))
185
+ $(foreach crate,syntax,$(eval $(call ADD_MIR_FLAG,$(crate))))
186
+
175
187
# platform-specific auto-configuration
176
188
include $(CFG_SRC_DIR ) mk/platform.mk
177
189
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
93
93
$$(LLVM_LIBDIR_RUSTFLAGS_$(2 ) ) \
94
94
$$(LLVM_STDCPP_RUSTFLAGS_$(2 ) ) \
95
95
$$(RUSTFLAGS_$(4 ) ) \
96
+ $$(RUSTFLAGS$(1 ) _$(4 ) ) \
96
97
$$(RUSTFLAGS$(1 ) _$(4 ) _T_$(2 ) ) \
97
98
--out-dir $$(@D ) \
98
99
-C extra-filename=-$$(CFG_FILENAME_EXTRA ) \
You can’t perform that action at this time.
0 commit comments