@@ -20,29 +20,6 @@ CFG_RELEASE_NUM=1.12.0
20
20
# versions (section 9)
21
21
CFG_PRERELEASE_VERSION =.1
22
22
23
- # Append a version-dependent hash to each library, so we can install different
24
- # versions in the same place
25
- CFG_FILENAME_EXTRA =$(shell printf '% s' $(CFG_RELEASE )$(CFG_EXTRA_FILENAME ) | $(CFG_HASH_COMMAND ) )
26
-
27
- # A magic value that allows the compiler to use unstable features during the
28
- # bootstrap even when doing so would normally be an error because of feature
29
- # staging or because the build turns on warnings-as-errors and unstable features
30
- # default to warnings. The build has to match this key in an env var.
31
- #
32
- # This value is keyed off the release to ensure that all compilers for one
33
- # particular release have the same bootstrap key. Note that this is
34
- # intentionally not "secure" by any definition, this is largely just a deterrent
35
- # from users enabling unstable features on the stable compiler.
36
- CFG_BOOTSTRAP_KEY =$(CFG_FILENAME_EXTRA )
37
-
38
- # The stage0 compiler needs to use the previous key recorded in src/stage0.txt,
39
- # except for local-rebuild when it just uses the same current key.
40
- ifdef CFG_ENABLE_LOCAL_REBUILD
41
- CFG_BOOTSTRAP_KEY_STAGE0 =$(CFG_BOOTSTRAP_KEY )
42
- else
43
- CFG_BOOTSTRAP_KEY_STAGE0 =$(shell grep 'rustc_key' $(S ) src/stage0.txt | sed 's/rustc_key: '//)
44
- endif
45
-
46
23
ifeq ($(CFG_RELEASE_CHANNEL ) ,stable)
47
24
# This is the normal semver version string, e.g. "0.12.0", "0.12.0-nightly"
48
25
CFG_RELEASE =$(CFG_RELEASE_NUM )
@@ -72,6 +49,29 @@ CFG_RELEASE=$(CFG_RELEASE_NUM)-dev
72
49
CFG_PACKAGE_VERS =$(CFG_RELEASE_NUM ) -dev
73
50
endif
74
51
52
+ # Append a version-dependent hash to each library, so we can install different
53
+ # versions in the same place
54
+ CFG_FILENAME_EXTRA =$(shell printf '% s' $(CFG_RELEASE )$(CFG_EXTRA_FILENAME ) | $(CFG_HASH_COMMAND ) )
55
+
56
+ # A magic value that allows the compiler to use unstable features during the
57
+ # bootstrap even when doing so would normally be an error because of feature
58
+ # staging or because the build turns on warnings-as-errors and unstable features
59
+ # default to warnings. The build has to match this key in an env var.
60
+ #
61
+ # This value is keyed off the release to ensure that all compilers for one
62
+ # particular release have the same bootstrap key. Note that this is
63
+ # intentionally not "secure" by any definition, this is largely just a deterrent
64
+ # from users enabling unstable features on the stable compiler.
65
+ CFG_BOOTSTRAP_KEY =$(CFG_FILENAME_EXTRA )
66
+
67
+ # The stage0 compiler needs to use the previous key recorded in src/stage0.txt,
68
+ # except for local-rebuild when it just uses the same current key.
69
+ ifdef CFG_ENABLE_LOCAL_REBUILD
70
+ CFG_BOOTSTRAP_KEY_STAGE0 =$(CFG_BOOTSTRAP_KEY )
71
+ else
72
+ CFG_BOOTSTRAP_KEY_STAGE0 =$(shell grep 'rustc_key' $(S ) src/stage0.txt | sed 's/rustc_key: '//)
73
+ endif
74
+
75
75
# The name of the package to use for creating tarballs, installers etc.
76
76
CFG_PACKAGE_NAME =rustc-$(CFG_PACKAGE_VERS )
77
77
0 commit comments