Skip to content

Commit 016d9fc

Browse files
committed
---
yaml --- r: 1716 b: refs/heads/master c: a599d80 h: refs/heads/master v: v3
1 parent da47048 commit 016d9fc

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
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: 874a7bfba25930208855c45dd4aaa111fb9b51f0
2+
refs/heads/master: a599d80e98bcae932832d20591bc1b14d3de8c20

trunk/Makefile.in

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,9 @@ X := $(CFG_EXE_SUFFIX)
173173
VPATH := $(S)doc $(S)src
174174

175175
# Compilers we build, we now know how to run.
176-
BOOT := $(Q)OCAMLRUNPARAM="b1" boot/rustboot$(X) $(CFG_BOOT_FLAGS)
177-
STAGE0 := $(Q)stage0/rustc$(X) $(CFG_RUSTC_FLAGS)
178-
STAGE1 := $(Q)stage1/rustc$(X) $(CFG_RUSTC_FLAGS)
179-
STAGE2 := $(Q)stage2/rustc$(X) $(CFG_RUSTC_FLAGS)
176+
BOOT := $(Q)OCAMLRUNPARAM="b1" boot/rustboot$(X) $(CFG_BOOT_FLAGS) -L stage0
177+
STAGE0 := $(Q)stage0/rustc$(X) $(CFG_RUSTC_FLAGS) -L stage1
178+
STAGE1 := $(Q)stage1/rustc$(X) $(CFG_RUSTC_FLAGS) -L stage2
180179

181180
# "Source" files we generate in builddir along the way.
182181
GENERATED := boot/fe/lexer.ml boot/version.ml
@@ -328,7 +327,11 @@ COMPILER_INPUTS := $(wildcard $(addprefix $(S)src/comp/, \
328327
# Single-target rules
329328
######################################################################
330329

331-
all: boot/rustboot$(X) rt/$(CFG_RUNTIME) llvmext/$(CFG_LLVMEXT)
330+
all: boot/rustboot$(X) \
331+
rt/$(CFG_RUNTIME) \
332+
llvmext/$(CFG_LLVMEXT) \
333+
stage0/rustc$(X) \
334+
$(GENERATED)
332335

333336
rt/$(CFG_RUNTIME): $(RUNTIME_OBJS) $(MKFILES) $(RUNTIME_HDR)
334337
@$(call E, link: $@)
@@ -355,6 +358,21 @@ boot/version.ml: $(MKFILES)
355358
$(Q)git log -1 \
356359
--pretty=format:'let version = "prerelease (%h %ci)";;' >$@ || exit 1
357360

361+
stage0/$(CFG_STDLIB): $(S)src/$(STDLIB_CRATE) $(STDLIB_INPUTS) \
362+
boot/rustboot$(X) $(MKFILES)
363+
@$(call E, compile: $@)
364+
$(BOOT) -shared -o $@ $<
365+
366+
stage0/rustc$(X): $(S)src/$(COMPILER_CRATE) $(COMPILER_INPUTS) \
367+
boot/rustboot$(X) rt/$(CFG_RUNTIME) \
368+
stage0/$(CFG_STDLIB)
369+
@$(call E, compile: $@)
370+
$(BOOT) -minimal -o $@ $<
371+
$(Q)chmod 0755 $@
372+
373+
stage0/glue.bc: stage0/rustc$(X) rt/$(CFG_RUNTIME) stage0/$(CFG_STDLIB)
374+
@$(call E, generate: $@)
375+
$(STAGE0) -o $@ -glue
358376

359377
######################################################################
360378
# Pattern rules

0 commit comments

Comments
 (0)