Skip to content

Commit e279174

Browse files
committed
modify import llvm
1 parent ee95ab2 commit e279174

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/bootstrap/src/core/config/config.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use std::process::Command;
1919
use std::str::FromStr;
2020

2121
use crate::core::build_steps::compile::CODEGEN_BACKEND_PREFIX;
22+
use crate::core::build_steps::llvm;
2223
use crate::core::config::flags::{Color, Flags, Warnings};
2324
use crate::utils::cache::{Interned, INTERNER};
2425
use crate::utils::cc_detect::{ndk_compiler, Language};
@@ -2101,18 +2102,18 @@ impl Config {
21012102
fn parse_download_ci_llvm(&self, download_ci_llvm: Option<StringOrBool>, asserts: bool) -> bool {
21022103
match download_ci_llvm {
21032104
None => {
2104-
self.channel == "dev" && crate::llvm::is_ci_llvm_available(&self, asserts)
2105+
self.channel == "dev" && llvm::is_ci_llvm_available(&self, asserts)
21052106
},
21062107
Some(StringOrBool::Bool(b)) => b,
21072108
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)
21092110
},
21102111
Some(StringOrBool::String(s)) if s == "if-unchanged" => {
21112112
if self.last_modified_commit(&["src/llvm-project"], "download-ci-llvm", true).is_none() {
21122113
// there are some untracked changes in the the given paths.
21132114
false
21142115
} else {
2115-
crate::llvm::is_ci_llvm_available(&self, asserts)
2116+
llvm::is_ci_llvm_available(&self, asserts)
21162117
}
21172118
},
21182119
Some(StringOrBool::String(other)) => {

0 commit comments

Comments
 (0)