Skip to content

Commit 5b3cd39

Browse files
committedJan 8, 2015
auto merge of #20733 : alexcrichton/rust/rollup, r=alexcrichton
2 parents 9f1ead8 + 0abf458 commit 5b3cd39

File tree

809 files changed

+6281
-4795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

809 files changed

+6281
-4795
lines changed
 

‎configure

+12
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,18 @@ then
599599
fi
600600
putvar CFG_RELEASE_CHANNEL
601601

602+
# A magic value that allows the compiler to use unstable features
603+
# during the bootstrap even when doing so would normally be an error
604+
# because of feature staging or because the build turns on
605+
# warnings-as-errors and unstable features default to warnings. The
606+
# build has to match this key in an env var. Meant to be a mild
607+
# deterrent from users just turning on unstable features on the stable
608+
# channel.
609+
# Basing CFG_BOOTSTRAP_KEY on CFG_BOOTSTRAP_KEY lets it get picked up
610+
# during a Makefile reconfig.
611+
CFG_BOOTSTRAP_KEY="${CFG_BOOTSTRAP_KEY-`date +%N`}"
612+
putvar CFG_BOOTSTRAP_KEY
613+
602614
step_msg "looking for build programs"
603615

604616
probe_need CFG_PERL perl

‎mk/main.mk

+11-2
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ ifeq ($(CFG_RELEASE_CHANNEL),stable)
2525
CFG_RELEASE=$(CFG_RELEASE_NUM)
2626
# This is the string used in dist artifact file names, e.g. "0.12.0", "nightly"
2727
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)
28+
CFG_DISABLE_UNSTABLE_FEATURES=1
2829
endif
2930
ifeq ($(CFG_RELEASE_CHANNEL),beta)
3031
# The beta channel is temporarily called 'alpha'
3132
CFG_RELEASE=$(CFG_RELEASE_NUM)-alpha$(CFG_BETA_CYCLE)
3233
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-alpha$(CFG_BETA_CYCLE)
34+
CFG_DISABLE_UNSTABLE_FEATURES=1
3335
endif
3436
ifeq ($(CFG_RELEASE_CHANNEL),nightly)
3537
CFG_RELEASE=$(CFG_RELEASE_NUM)-nightly
@@ -121,11 +123,9 @@ CFG_JEMALLOC_FLAGS += $(JEMALLOC_FLAGS)
121123

122124
ifdef CFG_DISABLE_DEBUG
123125
CFG_RUSTC_FLAGS += --cfg ndebug
124-
CFG_GCCISH_CFLAGS += -DRUST_NDEBUG
125126
else
126127
$(info cfg: enabling more debugging (CFG_ENABLE_DEBUG))
127128
CFG_RUSTC_FLAGS += --cfg debug
128-
CFG_GCCISH_CFLAGS += -DRUST_DEBUG
129129
endif
130130

131131
ifdef SAVE_TEMPS
@@ -319,11 +319,20 @@ export CFG_VERSION_WIN
319319
export CFG_RELEASE
320320
export CFG_PACKAGE_NAME
321321
export CFG_BUILD
322+
export CFG_RELEASE_CHANNEL
322323
export CFG_LLVM_ROOT
323324
export CFG_PREFIX
324325
export CFG_LIBDIR
325326
export CFG_LIBDIR_RELATIVE
326327
export CFG_DISABLE_INJECT_STD_VERSION
328+
ifdef CFG_DISABLE_UNSTABLE_FEATURES
329+
CFG_INFO := $(info cfg: disabling unstable features (CFG_DISABLE_UNSTABLE_FEATURES))
330+
# Turn on feature-staging
331+
export CFG_DISABLE_UNSTABLE_FEATURES
332+
endif
333+
# Subvert unstable feature lints to do the self-build
334+
export CFG_BOOTSTRAP_KEY
335+
export RUSTC_BOOTSTRAP_KEY:=$(CFG_BOOTSTRAP_KEY)
327336

328337
######################################################################
329338
# Per-stage targets and runner

0 commit comments

Comments
 (0)
Please sign in to comment.