File tree 8 files changed +18
-19
lines changed
8 files changed +18
-19
lines changed Original file line number Diff line number Diff line change @@ -42,18 +42,15 @@ change-id = 116881
42
42
# Unless you're developing for a target where Rust CI doesn't build a compiler
43
43
# toolchain or changing LLVM locally, you probably want to leave this enabled.
44
44
#
45
- # Set this to `"if-available"` if you are not sure whether you're on a tier 1
46
- # target. All tier 1 targets are currently supported;
47
- #
48
- # We also currently only support this when building LLVM for the build triple.
49
- #
50
- # Set this to `"if-unchanged"` to only download if the llvm-project have not
51
- # been modified. (If there are no changes or if built from tarball source,
52
- # the logic is the same as "if-available")
45
+ # Set this to `"if-unchanged"` to download only if the llvm-project has not
46
+ # been modified. You can also use this if you are unsure whether you're on a
47
+ # tier 1 target. All tier 1 targets are currently supported.
48
+
49
+ # Currently, we only support this when building LLVM for the build triple.
53
50
#
54
51
# Note that many of the LLVM options are not currently supported for
55
52
# downloading. Currently only the "assertions" option can be toggled.
56
- # download-ci-llvm = if rust.channel == "dev" { "if-available " } else { false }
53
+ # download-ci-llvm = if rust.channel == "dev" { "if-unchanged " } else { false }
57
54
58
55
# Indicates whether the LLVM build is a Release or Debug build
59
56
# optimize = true
Original file line number Diff line number Diff line change @@ -17,4 +17,4 @@ lto = "off"
17
17
18
18
[llvm ]
19
19
# Will download LLVM from CI if available on your platform.
20
- download-ci-llvm = " if-available "
20
+ download-ci-llvm = " if-unchanged "
Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ lto = "off"
13
13
14
14
[llvm ]
15
15
# Will download LLVM from CI if available on your platform.
16
- download-ci-llvm = " if-available "
16
+ download-ci-llvm = " if-unchanged "
Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ compiler-docs = true
21
21
22
22
[llvm ]
23
23
# Will download LLVM from CI if available on your platform.
24
- download-ci-llvm = " if-available "
24
+ download-ci-llvm = " if-unchanged "
Original file line number Diff line number Diff line change @@ -2113,6 +2113,8 @@ impl Config {
2113
2113
match download_ci_llvm {
2114
2114
None => self . channel == "dev" && llvm:: is_ci_llvm_available ( & self , asserts) ,
2115
2115
Some ( StringOrBool :: Bool ( b) ) => b,
2116
+ // FIXME: "if-available" is deprecated. Remove this block later (around mid 2024)
2117
+ // to not break builds between the recent-to-old checkouts.
2116
2118
Some ( StringOrBool :: String ( s) ) if s == "if-available" => {
2117
2119
llvm:: is_ci_llvm_available ( & self , asserts)
2118
2120
}
Original file line number Diff line number Diff line change @@ -24,19 +24,19 @@ fn download_ci_llvm() {
24
24
}
25
25
26
26
let parse_llvm = |s| parse ( s) . llvm_from_ci ;
27
- let if_available = parse_llvm ( "llvm.download-ci-llvm = \" if-available \" " ) ;
27
+ let if_unchanged = parse_llvm ( "llvm.download-ci-llvm = \" if-unchanged \" " ) ;
28
28
29
29
assert ! ( parse_llvm( "llvm.download-ci-llvm = true" ) ) ;
30
30
assert ! ( !parse_llvm( "llvm.download-ci-llvm = false" ) ) ;
31
- assert_eq ! ( parse_llvm( "" ) , if_available ) ;
32
- assert_eq ! ( parse_llvm( "rust.channel = \" dev\" " ) , if_available ) ;
31
+ assert_eq ! ( parse_llvm( "" ) , if_unchanged ) ;
32
+ assert_eq ! ( parse_llvm( "rust.channel = \" dev\" " ) , if_unchanged ) ;
33
33
assert ! ( !parse_llvm( "rust.channel = \" stable\" " ) ) ;
34
34
assert ! ( parse_llvm( "build.build = \" x86_64-unknown-linux-gnu\" " ) ) ;
35
35
assert ! ( parse_llvm(
36
- "llvm.assertions = true \r \n build.build = \" x86_64-unknown-linux-gnu\" \r \n llvm.download-ci-llvm = \" if-available \" "
36
+ "llvm.assertions = true \r \n build.build = \" x86_64-unknown-linux-gnu\" \r \n llvm.download-ci-llvm = \" if-unchanged \" "
37
37
) ) ;
38
38
assert ! ( !parse_llvm(
39
- "llvm.assertions = true \r \n build.build = \" aarch64-apple-darwin\" \r \n llvm.download-ci-llvm = \" if-available \" "
39
+ "llvm.assertions = true \r \n build.build = \" aarch64-apple-darwin\" \r \n llvm.download-ci-llvm = \" if-unchanged \" "
40
40
) ) ;
41
41
}
42
42
Original file line number Diff line number Diff line change 145
145
# LLVM continuously on at least some builders to ensure it works, though.
146
146
# (And PGO is its own can of worms).
147
147
if [ " $NO_DOWNLOAD_CI_LLVM " = " " ]; then
148
- RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set llvm.download-ci-llvm=if-available "
148
+ RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set llvm.download-ci-llvm=if-unchanged "
149
149
else
150
150
# When building for CI we want to use the static C++ Standard library
151
151
# included with LLVM, since a dynamic libstdcpp may not be available.
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ elif isWindows && [[ ${CUSTOM_MINGW-0} -ne 1 ]]; then
58
58
" ${RUST_CONFIGURE_ARGS} --set llvm.clang-cl=$( pwd) /clang-rust/bin/clang-cl.exe"
59
59
60
60
# Disable downloading CI LLVM on this builder;
61
- # setting up clang-cl just above conflicts with the default if-available option.
61
+ # setting up clang-cl just above conflicts with the default if-unchanged option.
62
62
ciCommandSetEnv NO_DOWNLOAD_CI_LLVM 1
63
63
fi
64
64
You can’t perform that action at this time.
0 commit comments