File tree 2 files changed +14
-3
lines changed
src/bootstrap/src/core/config
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 50
50
#
51
51
# Note that many of the LLVM options are not currently supported for
52
52
# downloading. Currently only the "assertions" option can be toggled.
53
- # download-ci-llvm = if rust.channel == "dev" { "if-unchanged" } else { false }
53
+ # download-ci-llvm = if rust.channel == "dev" || rust.download-rustc != false { "if-unchanged" } else { false }
54
54
55
55
# Indicates whether the LLVM build is a Release or Debug build
56
56
# optimize = true
Original file line number Diff line number Diff line change @@ -2483,9 +2483,20 @@ impl Config {
2483
2483
llvm:: is_ci_llvm_available ( self , asserts)
2484
2484
}
2485
2485
} ;
2486
+
2486
2487
match download_ci_llvm {
2487
- None => self . channel == "dev" && if_unchanged ( ) ,
2488
- Some ( StringOrBool :: Bool ( b) ) => b,
2488
+ None => {
2489
+ ( self . channel == "dev" || self . download_rustc_commit . is_some ( ) ) && if_unchanged ( )
2490
+ }
2491
+ Some ( StringOrBool :: Bool ( b) ) => {
2492
+ if !b && self . download_rustc_commit . is_some ( ) {
2493
+ panic ! (
2494
+ "`llvm.download-ci-llvm` cannot be set to `false` if `rust.download-rustc` is set to `true` or `if-unchanged`."
2495
+ ) ;
2496
+ }
2497
+
2498
+ b
2499
+ }
2489
2500
// FIXME: "if-available" is deprecated. Remove this block later (around mid 2024)
2490
2501
// to not break builds between the recent-to-old checkouts.
2491
2502
Some ( StringOrBool :: String ( s) ) if s == "if-available" => {
You can’t perform that action at this time.
0 commit comments