Skip to content

Commit c88ab58

Browse files
committed
Add per-stage RUSTFLAGS environment variables, RUSTFLAGS_STAGEN
1 parent c3b98ca commit c88ab58

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile.in

+5-2
Original file line numberDiff line numberDiff line change
@@ -346,19 +346,22 @@ else
346346
CFG_VALGRIND_COMPILE$(1) = $$(CFG_VALGRIND_COMPILE)
347347
endif
348348

349+
# Add RUSTFLAGS_STAGEN values to the build command
350+
EXTRAFLAGS_STAGE$(1) = $$(RUSTFLAGS_STAGE$(1))
351+
349352
STAGE$(1)_T_$(2)_H_$(3) := \
350353
$$(Q)$$(call CFG_RUN_TARG,$(1), \
351354
$$(CFG_VALGRIND_COMPILE$(1)) \
352355
$$(HBIN$(1)_H_$(3))/rustc$$(X) \
353356
--cfg stage$(1) \
354-
$$(CFG_RUSTC_FLAGS) --target=$(2))
357+
$$(CFG_RUSTC_FLAGS) $$(EXTRAFLAGS_STAGE$(1)) --target=$(2))
355358

356359
PERF_STAGE$(1)_T_$(2)_H_$(3) := \
357360
$$(Q)$$(call CFG_RUN_TARG,$(1), \
358361
$$(CFG_PERF_TOOL) \
359362
$$(HBIN$(1)_H_$(3))/rustc$$(X) \
360363
--cfg stage$(1) \
361-
$$(CFG_RUSTC_FLAGS) --target=$(2))
364+
$$(CFG_RUSTC_FLAGS) $$(EXTRAFLAGS_STAGE$(1)) --target=$(2))
362365

363366
endef
364367

0 commit comments

Comments
 (0)