Skip to content

Commit a44ffaf

Browse files
committed
---
yaml --- r: 2170 b: refs/heads/master c: c470cd2 h: refs/heads/master v: v3
1 parent fdeb980 commit a44ffaf

File tree

2 files changed

+26
-10
lines changed

2 files changed

+26
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 757f1520d77102b8d713c389d5997e9ce520ae5a
2+
refs/heads/master: c470cd2d662dfff155503813d1139799c60bdd04

trunk/Makefile.in

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -497,15 +497,13 @@ stage0/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(BREQ)
497497
$(BOOT) -minimal -o $@ $<
498498
$(Q)chmod 0755 $@
499499

500-
stage1/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ0)
500+
stage1/rustc.s: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ0)
501501
@$(call E, compile: $@)
502-
$(STAGE0) -o $@ $<
503-
$(Q)chmod 0755 $@
502+
$(STAGE0) -S -o $@ $<
504503

505-
stage2/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1)
504+
stage2/rustc.s: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1)
506505
@$(call E, compile: $@)
507-
$(STAGE1) -o $@ $<
508-
$(Q)chmod 0755 $@
506+
$(STAGE1) -S -o $@ $<
509507

510508

511509

@@ -531,17 +529,35 @@ stage2/glue.s: stage2/rustc$(X) stage1/$(CFG_STDLIB) \
531529
# compiler that relies on a .o file.
532530

533531
stage0/%.o: stage0/%.s
534-
@$(call E, assemble [llvm]: $@)
532+
@$(call E, assemble [gcc]: $@)
535533
$(Q)gcc $(CFG_GCC_CFLAGS) -o $@ -c $<
536534

537535
stage1/%.o: stage1/%.s
538-
@$(call E, assemble [llvm]: $@)
536+
@$(call E, assemble [gcc]: $@)
539537
$(Q)gcc $(CFG_GCC_CFLAGS) -o $@ -c $<
540538

541539
stage2/%.o: stage2/%.s
542-
@$(call E, assemble [llvm]: $@)
540+
@$(call E, assemble [gcc]: $@)
543541
$(Q)gcc $(CFG_GCC_CFLAGS) -o $@ -c $<
544542

543+
stage1/%$(X): stage1/%.o $(SREQ0)
544+
@$(call E, link [gcc]: $@)
545+
$(Q)gcc $(CFG_GCC_CFLAGS) stage0/glue.o -o $@ $< \
546+
-Lstage0 -Lrt -lrustrt -lstd -lm
547+
@# dsymutil sometimes fails or prints a warning, but the
548+
@# program still runs. Since it simplifies debugging other
549+
@# programs, I\'ll live with the noise.
550+
-$(Q)$(CFG_DSYMUTIL) $@
551+
552+
stage2/%$(X): stage2/%.o $(SREQ1)
553+
@$(call E, link [gcc]: $@)
554+
$(Q)gcc $(CFG_GCC_CFLAGS) stage1/glue.o -o $@ $< \
555+
-Lstage1 -Lrt -lrustrt -lstd -lm
556+
@# dsymutil sometimes fails or prints a warning, but the
557+
@# program still runs. Since it simplifies debugging other
558+
@# programs, I\'ll live with the noise.
559+
-$(Q)$(CFG_DSYMUTIL) $@
560+
545561

546562

547563
######################################################################

0 commit comments

Comments
 (0)