Skip to content

Commit 3a763a1

Browse files
committed
---
yaml --- r: 24105 b: refs/heads/master c: cb34138 h: refs/heads/master i: 24103: 80cfb5b v: v3
1 parent c721be5 commit 3a763a1

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 0a26edca75a53839d63c0227d62f863dfb717e1b
2+
refs/heads/master: cb34138cd02563892fb317a7ed4a9537f18e4371
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/Makefile.in

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,18 +355,30 @@ endif
355355
# Add RUSTFLAGS_STAGEN values to the build command
356356
EXTRAFLAGS_STAGE$(1) = $$(RUSTFLAGS_STAGE$(1))
357357

358+
CFGFLAG$(1)_T_$(2)_H_$(3) = stage$(1)
359+
360+
# XXX: Terrible hack. No time to explain! Remove after snapshot.
361+
ifeq ($(1),0)
362+
ifeq ($(3),i686-unknown-linux-gnu)
363+
CFGFLAG$(1)_T_$(2)_H_$(3) = stage1
364+
endif
365+
ifeq ($(3),i686-apple-darwin)
366+
CFGFLAG$(1)_T_$(2)_H_$(3) = stage1
367+
endif
368+
endif
369+
358370
STAGE$(1)_T_$(2)_H_$(3) := \
359371
$$(Q)$$(call CFG_RUN_TARG,$(1), \
360372
$$(CFG_VALGRIND_COMPILE$(1)) \
361373
$$(HBIN$(1)_H_$(3))/rustc$$(X) \
362-
--cfg stage$(1) \
374+
--cfg $$(CFGFLAG$(1)_T_$(2)_H_$(3)) \
363375
$$(CFG_RUSTC_FLAGS) $$(EXTRAFLAGS_STAGE$(1)) --target=$(2))
364376

365377
PERF_STAGE$(1)_T_$(2)_H_$(3) := \
366378
$$(Q)$$(call CFG_RUN_TARG,$(1), \
367379
$$(CFG_PERF_TOOL) \
368380
$$(HBIN$(1)_H_$(3))/rustc$$(X) \
369-
--cfg stage$(1) \
381+
--cfg $$(CFGFLAG$(1)_T_$(2)_H_$(3)) \
370382
$$(CFG_RUSTC_FLAGS) $$(EXTRAFLAGS_STAGE$(1)) --target=$(2))
371383

372384
endef

0 commit comments

Comments
 (0)