mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
mk: Move some definitions after their dependencies, to be visually less confusing
This commit is contained in:
parent
2539c15b49
commit
65fb7be728
46
mk/main.mk
46
mk/main.mk
@ -20,29 +20,6 @@ CFG_RELEASE_NUM=1.12.0
|
|||||||
# versions (section 9)
|
# versions (section 9)
|
||||||
CFG_PRERELEASE_VERSION=.1
|
CFG_PRERELEASE_VERSION=.1
|
||||||
|
|
||||||
# Append a version-dependent hash to each library, so we can install different
|
|
||||||
# versions in the same place
|
|
||||||
CFG_FILENAME_EXTRA=$(shell printf '%s' $(CFG_RELEASE)$(CFG_EXTRA_FILENAME) | $(CFG_HASH_COMMAND))
|
|
||||||
|
|
||||||
# A magic value that allows the compiler to use unstable features during the
|
|
||||||
# bootstrap even when doing so would normally be an error because of feature
|
|
||||||
# staging or because the build turns on warnings-as-errors and unstable features
|
|
||||||
# default to warnings. The build has to match this key in an env var.
|
|
||||||
#
|
|
||||||
# This value is keyed off the release to ensure that all compilers for one
|
|
||||||
# particular release have the same bootstrap key. Note that this is
|
|
||||||
# intentionally not "secure" by any definition, this is largely just a deterrent
|
|
||||||
# from users enabling unstable features on the stable compiler.
|
|
||||||
CFG_BOOTSTRAP_KEY=$(CFG_FILENAME_EXTRA)
|
|
||||||
|
|
||||||
# The stage0 compiler needs to use the previous key recorded in src/stage0.txt,
|
|
||||||
# except for local-rebuild when it just uses the same current key.
|
|
||||||
ifdef CFG_ENABLE_LOCAL_REBUILD
|
|
||||||
CFG_BOOTSTRAP_KEY_STAGE0=$(CFG_BOOTSTRAP_KEY)
|
|
||||||
else
|
|
||||||
CFG_BOOTSTRAP_KEY_STAGE0=$(shell grep 'rustc_key' $(S)src/stage0.txt | sed 's/rustc_key: '//)
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CFG_RELEASE_CHANNEL),stable)
|
ifeq ($(CFG_RELEASE_CHANNEL),stable)
|
||||||
# This is the normal semver version string, e.g. "0.12.0", "0.12.0-nightly"
|
# This is the normal semver version string, e.g. "0.12.0", "0.12.0-nightly"
|
||||||
CFG_RELEASE=$(CFG_RELEASE_NUM)
|
CFG_RELEASE=$(CFG_RELEASE_NUM)
|
||||||
@ -72,6 +49,29 @@ CFG_RELEASE=$(CFG_RELEASE_NUM)-dev
|
|||||||
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-dev
|
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-dev
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Append a version-dependent hash to each library, so we can install different
|
||||||
|
# versions in the same place
|
||||||
|
CFG_FILENAME_EXTRA=$(shell printf '%s' $(CFG_RELEASE)$(CFG_EXTRA_FILENAME) | $(CFG_HASH_COMMAND))
|
||||||
|
|
||||||
|
# A magic value that allows the compiler to use unstable features during the
|
||||||
|
# bootstrap even when doing so would normally be an error because of feature
|
||||||
|
# staging or because the build turns on warnings-as-errors and unstable features
|
||||||
|
# default to warnings. The build has to match this key in an env var.
|
||||||
|
#
|
||||||
|
# This value is keyed off the release to ensure that all compilers for one
|
||||||
|
# particular release have the same bootstrap key. Note that this is
|
||||||
|
# intentionally not "secure" by any definition, this is largely just a deterrent
|
||||||
|
# from users enabling unstable features on the stable compiler.
|
||||||
|
CFG_BOOTSTRAP_KEY=$(CFG_FILENAME_EXTRA)
|
||||||
|
|
||||||
|
# The stage0 compiler needs to use the previous key recorded in src/stage0.txt,
|
||||||
|
# except for local-rebuild when it just uses the same current key.
|
||||||
|
ifdef CFG_ENABLE_LOCAL_REBUILD
|
||||||
|
CFG_BOOTSTRAP_KEY_STAGE0=$(CFG_BOOTSTRAP_KEY)
|
||||||
|
else
|
||||||
|
CFG_BOOTSTRAP_KEY_STAGE0=$(shell grep 'rustc_key' $(S)src/stage0.txt | sed 's/rustc_key: '//)
|
||||||
|
endif
|
||||||
|
|
||||||
# The name of the package to use for creating tarballs, installers etc.
|
# The name of the package to use for creating tarballs, installers etc.
|
||||||
CFG_PACKAGE_NAME=rustc-$(CFG_PACKAGE_VERS)
|
CFG_PACKAGE_NAME=rustc-$(CFG_PACKAGE_VERS)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user