Skip to content

Commit c6ff1e8

Browse files
committed
Make the rules for compiling rustc explicit
Not sure why they were implicit since their dependencies only work for rustc
1 parent 42877bb commit c6ff1e8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

mk/stage1.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ stage1/%.o: stage1/%.s
3939
@$(call E, assemble [gcc]: $@)
4040
$(Q)gcc $(CFG_GCCISH_CFLAGS) -o $@ -c $<
4141

42-
stage1/%$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ0) stage0/intrinsics.bc
42+
stage1/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ0) \
43+
stage0/intrinsics.bc
4344
@$(call E, compile_and_link: $@)
4445
$(STAGE0) -o $@ $<
4546

mk/stage2.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ stage2/%.o: stage2/%.s
3939
@$(call E, assemble [gcc]: $@)
4040
$(Q)gcc $(CFG_GCCISH_CFLAGS) -o $@ -c $<
4141

42-
stage2/%$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1) stage1/intrinsics.bc
42+
stage2/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1) \
43+
stage1/intrinsics.bc
4344
@$(call E, compile_and_link: $@)
4445
$(STAGE1) -o $@ $<

mk/stage3.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ stage3/%.o: stage3/%.s
3939
@$(call E, assemble [gcc]: $@)
4040
$(Q)gcc $(CFG_GCCISH_CFLAGS) -o $@ -c $<
4141

42-
stage3/%$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ2) stage2/intrinsics.bc
42+
stage3/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ2) stage2/intrinsics.bc
4343
@$(call E, compile_and_link: $@)
4444
$(STAGE2) -o $@ $<

0 commit comments

Comments
 (0)