File tree 1 file changed +12
-7
lines changed
src/bootstrap/src/core/config 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -2099,23 +2099,28 @@ impl Config {
2099
2099
Some ( commit. to_string ( ) )
2100
2100
}
2101
2101
2102
- fn parse_download_ci_llvm ( & self , download_ci_llvm : Option < StringOrBool > , asserts : bool ) -> bool {
2102
+ fn parse_download_ci_llvm (
2103
+ & self ,
2104
+ download_ci_llvm : Option < StringOrBool > ,
2105
+ asserts : bool ,
2106
+ ) -> bool {
2103
2107
match download_ci_llvm {
2104
- None => {
2105
- self . channel == "dev" && llvm:: is_ci_llvm_available ( & self , asserts)
2106
- } ,
2108
+ None => self . channel == "dev" && llvm:: is_ci_llvm_available ( & self , asserts) ,
2107
2109
Some ( StringOrBool :: Bool ( b) ) => b,
2108
2110
Some ( StringOrBool :: String ( s) ) if s == "if-available" => {
2109
2111
llvm:: is_ci_llvm_available ( & self , asserts)
2110
- } ,
2112
+ }
2111
2113
Some ( StringOrBool :: String ( s) ) if s == "if-unchanged" => {
2112
- if self . last_modified_commit ( & [ "src/llvm-project" ] , "download-ci-llvm" , true ) . is_none ( ) {
2114
+ if self
2115
+ . last_modified_commit ( & [ "src/llvm-project" ] , "download-ci-llvm" , true )
2116
+ . is_none ( )
2117
+ {
2113
2118
// there are some untracked changes in the the given paths.
2114
2119
false
2115
2120
} else {
2116
2121
llvm:: is_ci_llvm_available ( & self , asserts)
2117
2122
}
2118
- } ,
2123
+ }
2119
2124
Some ( StringOrBool :: String ( other) ) => {
2120
2125
panic ! ( "unrecognized option for download-ci-llvm: {:?}" , other)
2121
2126
}
You can’t perform that action at this time.
0 commit comments