File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed 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