File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
src/bootstrap/src/core/config Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -2099,23 +2099,28 @@ impl Config {
20992099 Some ( commit. to_string ( ) )
21002100 }
21012101
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 {
21032107 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) ,
21072109 Some ( StringOrBool :: Bool ( b) ) => b,
21082110 Some ( StringOrBool :: String ( s) ) if s == "if-available" => {
21092111 llvm:: is_ci_llvm_available ( & self , asserts)
2110- } ,
2112+ }
21112113 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+ {
21132118 // there are some untracked changes in the the given paths.
21142119 false
21152120 } else {
21162121 llvm:: is_ci_llvm_available ( & self , asserts)
21172122 }
2118- } ,
2123+ }
21192124 Some ( StringOrBool :: String ( other) ) => {
21202125 panic ! ( "unrecognized option for download-ci-llvm: {:?}" , other)
21212126 }
You can’t perform that action at this time.
0 commit comments