@@ -19,6 +19,7 @@ use std::process::Command;
19
19
use std:: str:: FromStr ;
20
20
21
21
use crate :: core:: build_steps:: compile:: CODEGEN_BACKEND_PREFIX ;
22
+ use crate :: core:: build_steps:: llvm;
22
23
use crate :: core:: config:: flags:: { Color , Flags , Warnings } ;
23
24
use crate :: utils:: cache:: { Interned , INTERNER } ;
24
25
use crate :: utils:: cc_detect:: { ndk_compiler, Language } ;
@@ -2101,18 +2102,18 @@ impl Config {
2101
2102
fn parse_download_ci_llvm ( & self , download_ci_llvm : Option < StringOrBool > , asserts : bool ) -> bool {
2102
2103
match download_ci_llvm {
2103
2104
None => {
2104
- self . channel == "dev" && crate :: llvm:: is_ci_llvm_available ( & self , asserts)
2105
+ self . channel == "dev" && llvm:: is_ci_llvm_available ( & self , asserts)
2105
2106
} ,
2106
2107
Some ( StringOrBool :: Bool ( b) ) => b,
2107
2108
Some ( StringOrBool :: String ( s) ) if s == "if-avaliable" => {
2108
- crate :: llvm:: is_ci_llvm_available ( & self , asserts)
2109
+ llvm:: is_ci_llvm_available ( & self , asserts)
2109
2110
} ,
2110
2111
Some ( StringOrBool :: String ( s) ) if s == "if-unchanged" => {
2111
2112
if self . last_modified_commit ( & [ "src/llvm-project" ] , "download-ci-llvm" , true ) . is_none ( ) {
2112
2113
// there are some untracked changes in the the given paths.
2113
2114
false
2114
2115
} else {
2115
- crate :: llvm:: is_ci_llvm_available ( & self , asserts)
2116
+ llvm:: is_ci_llvm_available ( & self , asserts)
2116
2117
}
2117
2118
} ,
2118
2119
Some ( StringOrBool :: String ( other) ) => {
0 commit comments