@@ -343,6 +343,8 @@ COMPILER_INPUTS := $(wildcard $(addprefix $(S)src/comp/, \
343
343
all : boot/rustboot$(X ) \
344
344
rt/$(CFG_RUNTIME) \
345
345
llvmext/$(CFG_LLVMEXT) \
346
+ stage0/$(CFG_STDLIB) \
347
+ stage1/$(CFG_STDLIB) \
346
348
stage0/rustc$(X) \
347
349
stage0/glue.o \
348
350
$(GENERATED)
@@ -372,23 +374,43 @@ boot/version.ml: $(MKFILES)
372
374
$(Q ) git log -1 \
373
375
--pretty =format:'let version = "prerelease (%h %ci)";;' >$@ || exit 1
374
376
377
+
375
378
stage0/$(CFG_STDLIB ) : $(S ) src/$(STDLIB_CRATE ) $(STDLIB_INPUTS ) \
376
379
boot/rustboot$(X) $(MKFILES)
377
380
@$(call E, compile: $@)
378
381
$(BOOT) -shared -o $@ $<
379
382
383
+ stage1/$(CFG_STDLIB ) : $(S ) src/$(STDLIB_CRATE ) $(STDLIB_INPUTS ) \
384
+ stage0/rustc$(X) $(MKFILES)
385
+ @$(call E, compile: $@)
386
+ $(STAGE0) -shared -o $@ $<
387
+
388
+
380
389
stage0/rustc$(X ) : $(S ) src/$(COMPILER_CRATE ) $(COMPILER_INPUTS ) \
381
390
boot/rustboot$(X) rt/$(CFG_RUNTIME) \
382
391
stage0/$(CFG_STDLIB)
383
392
@$(call E, compile: $@)
384
393
$(BOOT) -minimal -o $@ $<
385
394
$(Q)chmod 0755 $@
386
395
396
+ stage1/rustc$(X ) : $(S ) src/$(COMPILER_CRATE ) $(COMPILER_INPUTS ) \
397
+ stage0/rustc$(X) rt/$(CFG_RUNTIME) \
398
+ stage1/$(CFG_STDLIB)
399
+ @$(call E, compile: $@)
400
+ $(STAGE0) -o $@ $<
401
+ $(Q)chmod 0755 $@
402
+
403
+
387
404
stage0/glue.bc : stage0/rustc$(X ) stage0/$(CFG_STDLIB ) \
388
405
llvmext/$(CFG_LLVMEXT) rt/$(CFG_RUNTIME)
389
406
@$(call E, generate: $@)
390
407
$(STAGE0) -o $@ -glue
391
408
409
+ stage1/glue.bc : stage1/rustc$(X ) stage1/$(CFG_STDLIB ) \
410
+ llvmext/$(CFG_LLVMEXT) rt/$(CFG_RUNTIME)
411
+ @$(call E, generate: $@)
412
+ $(STAGE1) -o $@ -glue
413
+
392
414
# #####################################################################
393
415
# Pattern rules
394
416
# #####################################################################
0 commit comments