@@ -388,8 +388,9 @@ COMPILER_INPUTS := $(wildcard $(addprefix $(S)src/comp/, \
388
388
389
389
LREQ := rt/$(CFG_RUNTIME ) rustllvm/$(CFG_RUSTLLVM )
390
390
BREQ := boot/rustboot$(X ) boot/$(CFG_STDLIB )
391
- SREQ0 := stage0/rustc$(X ) $(LREQ )
392
- SREQ1 := stage1/rustc$(X ) $(LREQ )
391
+ SREQ0 := stage0/rustc$(X ) $(LREQ ) stage0/glue.o stage0/$(CFG_STDLIB )
392
+ SREQ1 := stage1/rustc$(X ) $(LREQ ) stage1/glue.o stage1/$(CFG_STDLIB )
393
+ SREQ2 := stage2/rustc$(X ) $(LREQ ) stage2/glue.o stage2/$(CFG_STDLIB )
393
394
394
395
395
396
# #####################################################################
@@ -468,20 +469,17 @@ stage2/$(CFG_STDLIB): stage2/std.o stage2/glue.o
468
469
469
470
470
471
471
- stage0/rustc$(X ) : $(COMPILER_CRATE ) $(COMPILER_INPUTS ) \
472
- $(BREQ)
472
+ stage0/rustc$(X ) : $(COMPILER_CRATE ) $(COMPILER_INPUTS ) $(BREQ )
473
473
@$(call E, compile: $@ )
474
474
$(BOOT ) -minimal -o $@ $<
475
475
$(Q ) chmod 0755 $@
476
476
477
- stage1/rustc$(X ) : $(COMPILER_CRATE ) $(COMPILER_INPUTS ) \
478
- $(SREQ0) stage0/$(CFG_STDLIB)
477
+ stage1/rustc$(X ) : $(COMPILER_CRATE ) $(COMPILER_INPUTS ) $(SREQ0 )
479
478
@$(call E, compile: $@ )
480
479
$(STAGE0 ) -o $@ $<
481
480
$(Q ) chmod 0755 $@
482
481
483
- stage2/rustc$(X ) : $(COMPILER_CRATE ) $(COMPILER_INPUTS ) \
484
- $(SREQ1) stage1/$(CFG_STDLIB)
482
+ stage2/rustc$(X ) : $(COMPILER_CRATE ) $(COMPILER_INPUTS ) $(SREQ1 )
485
483
@$(call E, compile: $@ )
486
484
$(STAGE1 ) -o $@ $<
487
485
$(Q ) chmod 0755 $@
@@ -714,7 +712,7 @@ compile-check: tidy \
714
712
# Testing rules
715
713
# #####################################################################
716
714
717
- % .stage0$(X ) : % .stage0.o rt/ $( CFG_RUNTIME ) stage0/glue.o
715
+ % .stage0$(X ) : % .stage0.o $( SREQ0 )
718
716
@$(call E, link [gcc]: $@ )
719
717
$(Q ) gcc $(CFG_GCC_CFLAGS ) stage0/glue.o -o $@ $< \
720
718
-Lstage0 -Lrt -lrustrt -lstd
@@ -723,7 +721,7 @@ compile-check: tidy \
723
721
@# programs, I\'ll live with the noise.
724
722
-$(Q)$(CFG_DSYMUTIL) $@
725
723
726
- % .stage1(X) : % .stage1.o rt/ $( CFG_RUNTIME ) stage1/glue.o
724
+ % .stage1(X) : % .stage1.o $( SREQ1 )
727
725
@$(call E, link [gcc]: $@ )
728
726
$(Q ) gcc $(CFG_GCC_CFLAGS ) stage1/glue.o -o $@ $< \
729
727
-Lstage1 -Lrt -lrustrt -lstd
@@ -732,7 +730,7 @@ compile-check: tidy \
732
730
@# programs, I\'ll live with the noise.
733
731
-$(Q)$(CFG_DSYMUTIL) $@
734
732
735
- % .stage2$(X ) : % .stage2.o rt/ $( CFG_RUNTIME ) stage2/glue.o
733
+ % .stage2$(X ) : % .stage2.o $( SREQ2 )
736
734
@$(call E, link [gcc]: $@ )
737
735
$(Q ) gcc $(CFG_GCC_CFLAGS ) stage2/glue.o -o $@ $< \
738
736
-Lstage2 -Lrt -lrustrt -lstd
0 commit comments