File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9
9
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10
- refs/heads/dist-snap: 0a26edca75a53839d63c0227d62f863dfb717e1b
10
+ refs/heads/dist-snap: cb34138cd02563892fb317a7ed4a9537f18e4371
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -355,18 +355,30 @@ endif
355
355
# Add RUSTFLAGS_STAGEN values to the build command
356
356
EXTRAFLAGS_STAGE$(1 ) = $$(RUSTFLAGS_STAGE$(1 ) )
357
357
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
+
358
370
STAGE$(1 ) _T_$(2 ) _H_$(3 ) := \
359
371
$$(Q )$$(call CFG_RUN_TARG,$(1 ) , \
360
372
$$(CFG_VALGRIND_COMPILE$(1 ) ) \
361
373
$$(HBIN$(1 ) _H_$(3 ) ) /rustc$$(X ) \
362
- --cfg stage $( 1 ) \
374
+ --cfg $$( CFGFLAG $( 1 ) _T_ $( 2 ) _H_ $( 3 ) ) \
363
375
$$(CFG_RUSTC_FLAGS ) $$(EXTRAFLAGS_STAGE$(1 ) ) --target=$(2 ) )
364
376
365
377
PERF_STAGE$(1 ) _T_$(2 ) _H_$(3 ) := \
366
378
$$(Q )$$(call CFG_RUN_TARG,$(1 ) , \
367
379
$$(CFG_PERF_TOOL ) \
368
380
$$(HBIN$(1 ) _H_$(3 ) ) /rustc$$(X ) \
369
- --cfg stage $( 1 ) \
381
+ --cfg $$( CFGFLAG $( 1 ) _T_ $( 2 ) _H_ $( 3 ) ) \
370
382
$$(CFG_RUSTC_FLAGS ) $$(EXTRAFLAGS_STAGE$(1 ) ) --target=$(2 ) )
371
383
372
384
endef
You can’t perform that action at this time.
0 commit comments