aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-05-13 17:00:43 -0700
committerGraydon Hoare <[email protected]>2011-05-13 17:06:58 -0700
commitae784df3ce0c354fde00a6d9a4a50d642bdb3560 (patch)
treeaf075f13c465dd3e43d8f9ade50d740953e02e79 /Makefile.in
parentrustc: Move replace_expr_type() from ty to typeck, as it's only used in the l... (diff)
downloadrust-ae784df3ce0c354fde00a6d9a4a50d642bdb3560.tar.xz
rust-ae784df3ce0c354fde00a6d9a4a50d642bdb3560.zip
Add support for 'T' transition snapshots, which are identical to S snapshots except they tell the makefile to stop at stage1.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in23
1 files changed, 22 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index ac4d5069..5e33d8d9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -165,6 +165,25 @@ LLVM_AS := $(CFG_LLVM_BINDIR)/llvm-as
# Single-target rules
######################################################################
+ifneq ($(CFG_IN_TRANSITION),)
+
+CFG_INFO := $(info cfg: *** compiler is in snapshot transition ***)
+CFG_INFO := $(info cfg: *** stage2 and later will not be built ***)
+
+all: rt/$(CFG_RUNTIME) \
+ rustllvm/$(CFG_RUSTLLVM) \
+ stage0/$(CFG_STDLIB) \
+ stage0/intrinsics.bc \
+ stage0/rustc$(X) \
+ $(GENERATED) \
+ $(DOCS) \
+ stage1/$(CFG_STDLIB) \
+ stage1/intrinsics.bc \
+ stage1/glue.o \
+ stage1/rustc$(X) \
+
+else
+
all: rt/$(CFG_RUNTIME) \
rustllvm/$(CFG_RUSTLLVM) \
stage0/$(CFG_STDLIB) \
@@ -185,12 +204,14 @@ all: rt/$(CFG_RUNTIME) \
stage3/intrinsics.bc \
stage3/rustc$(X)
+endif
+
######################################################################
# Re-configuration
######################################################################
-config.mk: $(S)configure $(S)Makefile.in
+config.mk: $(S)configure $(S)Makefile.in $(S)src/snapshots.txt
@$(call E, cfg: reconfiguring)
$(S)configure $(CFG_CONFIGURE_ARGS)