@@ -15,11 +15,14 @@ use std::fs;
15
15
use std:: path:: PathBuf ;
16
16
use std:: process:: Command ;
17
17
18
+ #[ cfg( not( feature = "bootstrap-self-test" ) ) ]
19
+ use crate :: builder:: Builder ;
20
+ #[ cfg( not( feature = "bootstrap-self-test" ) ) ]
21
+ use crate :: core:: build_steps:: tool;
18
22
#[ cfg( not( feature = "bootstrap-self-test" ) ) ]
19
23
use std:: collections:: HashSet ;
20
24
21
- use crate :: builder:: { Builder , Kind } ;
22
- use crate :: core:: build_steps:: tool;
25
+ use crate :: builder:: Kind ;
23
26
use crate :: core:: config:: Target ;
24
27
use crate :: utils:: helpers:: output;
25
28
use crate :: Build ;
@@ -41,6 +44,7 @@ const STAGE0_MISSING_TARGETS: &[&str] = &[
41
44
42
45
/// Minimum version threshold for libstdc++ required when using prebuilt LLVM
43
46
/// from CI (with`llvm.download-ci-llvm` option).
47
+ #[ cfg( not( feature = "bootstrap-self-test" ) ) ]
44
48
const LIBSTDCXX_MIN_VERSION_THRESHOLD : usize = 8 ;
45
49
46
50
impl Finder {
@@ -108,6 +112,7 @@ pub fn check(build: &mut Build) {
108
112
}
109
113
110
114
// Ensure that a compatible version of libstdc++ is available on the system when using `llvm.download-ci-llvm`.
115
+ #[ cfg( not( feature = "bootstrap-self-test" ) ) ]
111
116
if !build. config . dry_run ( ) && !build. build . is_msvc ( ) && build. config . llvm_from_ci {
112
117
let builder = Builder :: new ( build) ;
113
118
let libcxx_version = builder. ensure ( tool:: LibcxxVersionTool { target : build. build } ) ;
0 commit comments