We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
if-unchanged
download-ci-llvm
1 parent 68aaa8d commit f53acd1Copy full SHA for f53acd1
src/bootstrap/src/core/config/config.rs
@@ -3097,7 +3097,14 @@ impl Config {
3097
download_ci_llvm: Option<StringOrBool>,
3098
asserts: bool,
3099
) -> bool {
3100
- let download_ci_llvm = download_ci_llvm.unwrap_or(StringOrBool::Bool(true));
+ // We don't ever want to use `true` on CI, as we should not
3101
+ // download upstream artifacts if there are any local modifications.
3102
+ let default = if self.is_running_on_ci {
3103
+ StringOrBool::String("if-unchanged".to_string())
3104
+ } else {
3105
+ StringOrBool::Bool(true)
3106
+ };
3107
+ let download_ci_llvm = download_ci_llvm.unwrap_or(default);
3108
3109
let if_unchanged = || {
3110
if self.rust_info.is_from_tarball() {
0 commit comments