From 2c16be424b86e5599851da74d98191560744c46d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Wed, 8 Jun 2011 13:33:35 -0400 Subject: [PATCH] Use main.o directly now that stage0 is ok with it. --- Makefile.in | 6 +++--- mk/clean.mk | 1 - mk/rt.mk | 4 ---- mk/stage1.mk | 2 +- mk/stage2.mk | 2 +- mk/stage3.mk | 2 +- mk/tests.mk | 6 +++--- 7 files changed, 9 insertions(+), 14 deletions(-) diff --git a/Makefile.in b/Makefile.in index 362b97ea036..50224f62a0d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -144,9 +144,9 @@ COMPILER_INPUTS := $(wildcard $(addprefix $(S)src/comp/, \ ###################################################################### LREQ := rt/$(CFG_RUNTIME) rustllvm/$(CFG_RUSTLLVM) -SREQ0 := stage0/rustc$(X) $(LREQ) rt/main.a stage1/glue.o stage1/$(CFG_STDLIB) -SREQ1 := stage1/rustc$(X) $(LREQ) rt/main.a stage2/glue.o stage2/$(CFG_STDLIB) -SREQ2 := stage2/rustc$(X) $(LREQ) rt/main.a stage3/glue.o stage3/$(CFG_STDLIB) +SREQ0 := stage0/rustc$(X) $(LREQ) rt/main.o stage1/glue.o stage1/$(CFG_STDLIB) +SREQ1 := stage1/rustc$(X) $(LREQ) rt/main.o stage2/glue.o stage2/$(CFG_STDLIB) +SREQ2 := stage2/rustc$(X) $(LREQ) rt/main.o stage3/glue.o stage3/$(CFG_STDLIB) ###################################################################### diff --git a/mk/clean.mk b/mk/clean.mk index 305b06b5e0a..5353006fe7c 100644 --- a/mk/clean.mk +++ b/mk/clean.mk @@ -29,7 +29,6 @@ clean: $(Q)rm -f rustllvm/$(CFG_RUSTLLVM) rustllvm/rustllvmbits.a $(Q)rm -f rt/$(CFG_RUNTIME) $(Q)rm -f rt/main.o - $(Q)rm -f rt/main.a $(Q)rm -Rf $(PKG_NAME)-*.tar.gz dist $(Q)rm -f $(foreach ext,o a d bc s exe,$(wildcard stage*/*.$(ext))) $(Q)rm -Rf $(foreach ext,out out.tmp \ diff --git a/mk/rt.mk b/mk/rt.mk index 1cc6dfb57f4..566e5f285d4 100644 --- a/mk/rt.mk +++ b/mk/rt.mk @@ -84,10 +84,6 @@ rt/main.ll: rt/main.ll.in sed 's/MAIN/main/' < $^ > $@ endif -rt/main.a: rt/main.o - rm -f $@ - ar crs $@ $^ - rt/%.o: rt/%.ll $(MKFILES) @$(call E, llc: $@) $(Q)$(LLC) -filetype=obj -relocation-model=pic -march=x86 -o $@ $< diff --git a/mk/stage1.mk b/mk/stage1.mk index c98882e41a8..d3a2ca52853 100644 --- a/mk/stage1.mk +++ b/mk/stage1.mk @@ -44,7 +44,7 @@ stage1/%.o: stage1/%.s stage1/%$(X): stage1/%.o $(SREQ0) @$(call E, link [gcc]: $@) $(Q)gcc $(CFG_GCCISH_CFLAGS) stage1/glue.o -o $@ $< \ - -Lstage1 -Lrustllvm -Lrt rt/main.a -lrustrt -lrustllvm -lstd -lm + -Lstage1 -Lrustllvm -Lrt rt/main.o -lrustrt -lrustllvm -lstd -lm @# dsymutil sometimes fails or prints a warning, but the @# program still runs. Since it simplifies debugging other @# programs, I\'ll live with the noise. diff --git a/mk/stage2.mk b/mk/stage2.mk index 0d87400c1e2..a1c8da05ba3 100644 --- a/mk/stage2.mk +++ b/mk/stage2.mk @@ -44,7 +44,7 @@ stage2/%.o: stage2/%.s stage2/%$(X): stage2/%.o $(SREQ1) @$(call E, link [gcc]: $@) $(Q)gcc $(CFG_GCCISH_CFLAGS) stage2/glue.o -o $@ $< \ - -Lstage2 -Lrustllvm -Lrt rt/main.a -lrustrt -lrustllvm -lstd -lm + -Lstage2 -Lrustllvm -Lrt rt/main.o -lrustrt -lrustllvm -lstd -lm @# dsymutil sometimes fails or prints a warning, but the @# program still runs. Since it simplifies debugging other @# programs, I\'ll live with the noise. diff --git a/mk/stage3.mk b/mk/stage3.mk index 77d09440883..3654c17aa44 100644 --- a/mk/stage3.mk +++ b/mk/stage3.mk @@ -44,7 +44,7 @@ stage3/%.o: stage3/%.s stage3/%$(X): stage3/%.o $(SREQ2) @$(call E, link [gcc]: $@) $(Q)gcc $(CFG_GCCISH_CFLAGS) stage3/glue.o -o $@ $< \ - -Lstage3 -Lrustllvm -Lrt rt/main.a -lrustrt -lrustllvm -lstd -lm + -Lstage3 -Lrustllvm -Lrt rt/main.o -lrustrt -lrustllvm -lstd -lm @# dsymutil sometimes fails or prints a warning, but the @# program still runs. Since it simplifies debugging other @# programs, I\'ll live with the noise. diff --git a/mk/tests.mk b/mk/tests.mk index db7a3dd4d33..79ab8d3774b 100644 --- a/mk/tests.mk +++ b/mk/tests.mk @@ -185,7 +185,7 @@ compile-check: tidy \ %.stage0$(X): %.stage0.o $(SREQ0) @$(call E, link [gcc]: $@) $(Q)gcc $(CFG_GCCISH_CFLAGS) stage1/glue.o -o $@ $< \ - -Lstage1 -Lrt rt/main.a -lrustrt -lstd -lm + -Lstage1 -Lrt rt/main.o -lrustrt -lstd -lm @# dsymutil sometimes fails or prints a warning, but the @# program still runs. Since it simplifies debugging other @# programs, I\'ll live with the noise. @@ -194,7 +194,7 @@ compile-check: tidy \ %.stage1$(X): %.stage1.o $(SREQ1) @$(call E, link [gcc]: $@) $(Q)gcc $(CFG_GCCISH_CFLAGS) stage2/glue.o -o $@ $< \ - -Lstage2 -Lrt rt/main.a -lrustrt -lstd -lm + -Lstage2 -Lrt rt/main.o -lrustrt -lstd -lm @# dsymutil sometimes fails or prints a warning, but the @# program still runs. Since it simplifies debugging other @# programs, I\'ll live with the noise. @@ -203,7 +203,7 @@ compile-check: tidy \ %.stage2$(X): %.stage2.o $(SREQ2) @$(call E, link [gcc]: $@) $(Q)gcc $(CFG_GCCISH_CFLAGS) stage3/glue.o -o $@ $< \ - -Lstage3 -Lrt rt/main.a -lrustrt -lstd -lm + -Lstage3 -Lrt rt/main.o -lrustrt -lstd -lm @# dsymutil sometimes fails or prints a warning, but the @# program still runs. Since it simplifies debugging other @# programs, I\'ll live with the noise.