Skip to content

Commit 1a70726

Browse files
committed
---
yaml --- r: 2455 b: refs/heads/master c: 9a12ad6 h: refs/heads/master i: 2453: 2428155 2451: b6f06ad 2447: 61eea3f v: v3
1 parent da5b6ce commit 1a70726

File tree

5 files changed

+29
-1
lines changed

5 files changed

+29
-1
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: a5ea56c6f09c885d2bc9598419456c221ebb6831
2+
refs/heads/master: 9a12ad62f6bc0ea9ec1164519d1b922642ab34d2

trunk/Makefile.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ include $(CFG_SRC_DIR)/mk/platform.mk
3737
CFG_RUNTIME :=$(call CFG_LIB_NAME,rustrt)
3838
CFG_RUSTLLVM :=$(call CFG_LIB_NAME,rustllvm)
3939
CFG_STDLIB :=$(call CFG_LIB_NAME,std)
40+
CFG_RUSTCLIB :=$(call CFG_LIB_NAME,rustc)
4041

4142
# version-string calculation
4243
CFG_GIT_DIR := $(CFG_SRC_DIR).git

trunk/mk/stage1.mk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ stage1/$(CFG_STDLIB): stage1/std.o stage1/glue.o
99
$(Q)gcc $(CFG_GCCISH_CFLAGS) stage1/glue.o $(CFG_GCCISH_LINK_FLAGS) \
1010
-o $@ $< -Lstage1 -Lrt -lrustrt
1111

12+
stage1/librustc.o: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ0)
13+
@$(call E, compile: $@)
14+
$(STAGE0) -c --shared -o $@ $<
15+
16+
stage1/$(CFG_RUSTCLIB): stage1/librustc.o stage1/glue.o
17+
@$(call E, link: $@)
18+
$(Q)gcc $(CFG_GCC_CFLAGS) stage1/glue.o $(CFG_GCC_LINK_FLAGS) -o $@ $< \
19+
-Lstage1 -Lrt -lrustrt
20+
1221
stage1/rustc.o: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ0)
1322
@$(call E, compile: $@)
1423
$(STAGE0) -c -o $@ $<

trunk/mk/stage2.mk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ stage2/$(CFG_STDLIB): stage2/std.o stage2/glue.o
99
$(Q)gcc $(CFG_GCCISH_CFLAGS) stage2/glue.o $(CFG_GCCISH_LINK_FLAGS) -o \
1010
$@ $< -Lstage2 -Lrt -lrustrt
1111

12+
stage2/librustc.o: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1)
13+
@$(call E, compile: $@)
14+
$(STAGE1) -c --shared -o $@ $<
15+
16+
stage2/$(CFG_RUSTCLIB): stage2/librustc.o stage2/glue.o
17+
@$(call E, link: $@)
18+
$(Q)gcc $(CFG_GCC_CFLAGS) stage2/glue.o $(CFG_GCC_LINK_FLAGS) -o $@ $< \
19+
-Lstage2 -Lrt -lrustrt
20+
1221
stage2/rustc.o: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1)
1322
@$(call E, compile: $@)
1423
$(STAGE1) -c -o $@ $<

trunk/mk/stage3.mk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ stage3/$(CFG_STDLIB): stage3/std.o stage3/glue.o
99
$(Q)gcc $(CFG_GCCISH_CFLAGS) stage3/glue.o $(CFG_GCCISH_LINK_FLAGS) -o \
1010
$@ $< -Lstage3 -Lrt -lrustrt
1111

12+
stage3/librustc.o: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ2)
13+
@$(call E, compile: $@)
14+
$(STAGE2) -c --shared -o $@ $<
15+
16+
stage3/$(CFG_RUSTCLIB): stage3/librustc.o stage3/glue.o
17+
@$(call E, link: $@)
18+
$(Q)gcc $(CFG_GCC_CFLAGS) stage3/glue.o $(CFG_GCC_LINK_FLAGS) -o $@ $< \
19+
-Lstage3 -Lrt -lrustrt
20+
1221
stage3/rustc.o: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ2)
1322
@$(call E, compile: $@)
1423
$(STAGE2) -c -o $@ $<

0 commit comments

Comments
 (0)