File tree Expand file tree Collapse file tree 5 files changed +29
-1
lines changed Expand file tree Collapse file tree 5 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: a5ea56c6f09c885d2bc9598419456c221ebb6831
2
+ refs/heads/master: 9a12ad62f6bc0ea9ec1164519d1b922642ab34d2
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ include $(CFG_SRC_DIR)/mk/platform.mk
37
37
CFG_RUNTIME :=$(call CFG_LIB_NAME,rustrt)
38
38
CFG_RUSTLLVM :=$(call CFG_LIB_NAME,rustllvm)
39
39
CFG_STDLIB :=$(call CFG_LIB_NAME,std)
40
+ CFG_RUSTCLIB :=$(call CFG_LIB_NAME,rustc)
40
41
41
42
# version-string calculation
42
43
CFG_GIT_DIR := $(CFG_SRC_DIR ) .git
Original file line number Diff line number Diff line change @@ -9,6 +9,15 @@ stage1/$(CFG_STDLIB): stage1/std.o stage1/glue.o
9
9
$(Q ) gcc $(CFG_GCCISH_CFLAGS ) stage1/glue.o $(CFG_GCCISH_LINK_FLAGS ) \
10
10
-o $@ $< -Lstage1 -Lrt -lrustrt
11
11
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
+
12
21
stage1/rustc.o : $(COMPILER_CRATE ) $(COMPILER_INPUTS ) $(SREQ0 )
13
22
@$(call E, compile: $@ )
14
23
$(STAGE0 ) -c -o $@ $<
Original file line number Diff line number Diff line change @@ -9,6 +9,15 @@ stage2/$(CFG_STDLIB): stage2/std.o stage2/glue.o
9
9
$(Q ) gcc $(CFG_GCCISH_CFLAGS ) stage2/glue.o $(CFG_GCCISH_LINK_FLAGS ) -o \
10
10
$@ $< -Lstage2 -Lrt -lrustrt
11
11
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
+
12
21
stage2/rustc.o : $(COMPILER_CRATE ) $(COMPILER_INPUTS ) $(SREQ1 )
13
22
@$(call E, compile: $@ )
14
23
$(STAGE1 ) -c -o $@ $<
Original file line number Diff line number Diff line change @@ -9,6 +9,15 @@ stage3/$(CFG_STDLIB): stage3/std.o stage3/glue.o
9
9
$(Q ) gcc $(CFG_GCCISH_CFLAGS ) stage3/glue.o $(CFG_GCCISH_LINK_FLAGS ) -o \
10
10
$@ $< -Lstage3 -Lrt -lrustrt
11
11
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
+
12
21
stage3/rustc.o : $(COMPILER_CRATE ) $(COMPILER_INPUTS ) $(SREQ2 )
13
22
@$(call E, compile: $@ )
14
23
$(STAGE2 ) -c -o $@ $<
You can’t perform that action at this time.
0 commit comments