Skip to content

Commit 7dbce10

Browse files
committed
Remove the redundant definition of STAGE in makefiles
1 parent 4ee9b86 commit 7dbce10

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

Makefile.in

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,13 @@ CFG_VALGRIND_COMPILE$(1) = $$(CFG_VALGRIND_COMPILE)
197197
endif
198198

199199
STAGE$(1) := $$(Q)$$(call CFG_RUN_TARG,stage$(1), \
200-
$$(CFG_VALGRIND_COMPILE$(1)) stage$(1)/bin/rustc$$(X) \
201-
$$(CFG_RUSTC_FLAGS))
200+
$$(CFG_VALGRIND_COMPILE) stage$(1)/bin/rustc$$(X) \
201+
$$(CFG_RUSTC_FLAGS) --target=$(2))
202+
203+
PERF_STAGE$(1) := $$(Q)$$(call CFG_RUN_TARG,stage$(1), \
204+
$$(CFG_PERF_TOOL) stage$(1)/bin/rustc$$(X) \
205+
$$(CFG_RUSTC_FLAGS) --target=$(2))
206+
202207
endef
203208

204209
FUZZ := stage1/bin/fuzzer$(X)

mk/stageN.mk

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ define STAGE_N
1919
# for different directories, to handle cases where (say) a test relies on a
2020
# compiler that relies on a .o file.
2121

22-
STAGE$(2) := $$(Q)$$(call CFG_RUN_TARG,stage$(2), \
23-
$$(CFG_VALGRIND_COMPILE) stage$(2)/bin/rustc$$(X) \
24-
$$(CFG_RUSTC_FLAGS) --target=$(3))
25-
26-
PERF_STAGE$(2) := $$(Q)$$(call CFG_RUN_TARG,stage$(2), \
27-
$$(CFG_PERF_TOOL) stage$(2)/bin/rustc$$(X) \
28-
$$(CFG_RUSTC_FLAGS) --target=$(3))
29-
3022
stage$(2)/bin/%.o: stage$(2)/bin/%.s
3123
@$$(call E, assemble [gcc]: $$@)
3224
$$(Q)gcc $$(CFG_GCCISH_CFLAGS) -o $$@ -c $$<

0 commit comments

Comments
 (0)