@@ -2,13 +2,13 @@ use std::fs;
22use std:: path:: { Path , PathBuf } ;
33use std:: process:: Command ;
44
5- use super :: path:: { Dirs , RelPath } ;
6- use super :: rustc_info:: get_file_name;
7- use super :: utils:: {
5+ use crate :: path:: { Dirs , RelPath } ;
6+ use crate :: rustc_info:: get_file_name;
7+ use crate :: utils:: {
88 maybe_incremental, remove_dir_if_exists, spawn_and_wait, try_hard_link, CargoProject , Compiler ,
99 LogGroup ,
1010} ;
11- use super :: { CodegenBackend , SysrootKind } ;
11+ use crate :: { config , CodegenBackend , SysrootKind } ;
1212
1313static DIST_DIR : RelPath = RelPath :: DIST ;
1414static BIN_DIR : RelPath = RelPath :: DIST . join ( "bin" ) ;
@@ -185,7 +185,7 @@ fn build_sysroot_for_triple(
185185
186186#[ must_use]
187187fn build_llvm_sysroot_for_triple ( compiler : Compiler ) -> SysrootTarget {
188- let default_sysroot = super :: rustc_info:: get_default_sysroot ( & compiler. rustc ) ;
188+ let default_sysroot = crate :: rustc_info:: get_default_sysroot ( & compiler. rustc ) ;
189189
190190 let mut target_libs = SysrootTarget { triple : compiler. triple , libs : vec ! [ ] } ;
191191
@@ -234,7 +234,7 @@ fn build_clif_sysroot_for_triple(
234234
235235 let build_dir = STANDARD_LIBRARY . target_dir ( dirs) . join ( & compiler. triple ) . join ( channel) ;
236236
237- if !super :: config:: get_bool ( "keep_sysroot" ) {
237+ if !config:: get_bool ( "keep_sysroot" ) {
238238 // Cleanup the deps dir, but keep build scripts and the incremental cache for faster
239239 // recompilation as they are not affected by changes in cg_clif.
240240 remove_dir_if_exists ( & build_dir. join ( "deps" ) ) ;
@@ -289,8 +289,8 @@ fn build_clif_sysroot_for_triple(
289289}
290290
291291fn build_rtstartup ( dirs : & Dirs , compiler : & Compiler ) -> Option < SysrootTarget > {
292- if !super :: config:: get_bool ( "keep_sysroot" ) {
293- super :: prepare:: prepare_stdlib ( dirs, & compiler. rustc ) ;
292+ if !config:: get_bool ( "keep_sysroot" ) {
293+ crate :: prepare:: prepare_stdlib ( dirs, & compiler. rustc ) ;
294294 }
295295
296296 if !compiler. triple . ends_with ( "windows-gnu" ) {
0 commit comments