File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
src/bootstrap/src/core/config Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -2134,15 +2134,7 @@ pub fn parse_download_ci_llvm<'a>(
2134
2134
asserts : bool ,
2135
2135
) -> bool {
2136
2136
let dwn_ctx = dwn_ctx. as_ref ( ) ;
2137
-
2138
- // We don't ever want to use `true` on CI, as we should not
2139
- // download upstream artifacts if there are any local modifications.
2140
- let default = if dwn_ctx. is_running_on_ci {
2141
- StringOrBool :: String ( "if-unchanged" . to_string ( ) )
2142
- } else {
2143
- StringOrBool :: Bool ( true )
2144
- } ;
2145
- let download_ci_llvm = download_ci_llvm. unwrap_or ( default) ;
2137
+ let download_ci_llvm = download_ci_llvm. unwrap_or ( StringOrBool :: Bool ( true ) ) ;
2146
2138
2147
2139
let if_unchanged = || {
2148
2140
if rust_info. is_from_tarball ( ) {
@@ -2174,8 +2166,9 @@ pub fn parse_download_ci_llvm<'a>(
2174
2166
) ;
2175
2167
}
2176
2168
2177
- if b && dwn_ctx. is_running_on_ci {
2178
- // On CI, we must always rebuild LLVM if there were any modifications to it
2169
+ #[ cfg( not( test) ) ]
2170
+ if b && dwn_ctx. is_running_on_ci && CiEnv :: is_rust_lang_managed_ci_job ( ) {
2171
+ // On rust-lang CI, we must always rebuild LLVM if there were any modifications to it
2179
2172
panic ! (
2180
2173
"`llvm.download-ci-llvm` cannot be set to `true` on CI. Use `if-unchanged` instead."
2181
2174
) ;
You can’t perform that action at this time.
0 commit comments