@@ -16,11 +16,11 @@ use std::io;
16
16
use std:: path:: { Path , PathBuf } ;
17
17
use std:: process:: Command ;
18
18
19
- use crate :: builder:: { Builder , RunConfig , ShouldRun , Step } ;
20
- use crate :: config:: { Config , TargetSelection } ;
19
+ use crate :: core :: builder:: { Builder , RunConfig , ShouldRun , Step } ;
20
+ use crate :: core :: config:: { Config , TargetSelection } ;
21
21
use crate :: misc:: channel;
22
- use crate :: util :: get_clang_cl_resource_dir;
23
- use crate :: util :: { self , exe, output, t, up_to_date} ;
22
+ use crate :: utils :: get_clang_cl_resource_dir;
23
+ use crate :: utils :: { self , exe, output, t, up_to_date} ;
24
24
use crate :: { CLang , GitRepo , Kind } ;
25
25
26
26
use build_helper:: ci:: CiEnv ;
@@ -281,7 +281,7 @@ impl Step for Llvm {
281
281
282
282
let _guard = builder. msg_unstaged ( Kind :: Build , "LLVM" , target) ;
283
283
t ! ( stamp. remove( ) ) ;
284
- let _time = util :: timeit ( & builder) ;
284
+ let _time = utils :: timeit ( & builder) ;
285
285
t ! ( fs:: create_dir_all( & out_dir) ) ;
286
286
287
287
// https://llvm.org/docs/CMake.html
@@ -410,7 +410,7 @@ impl Step for Llvm {
410
410
411
411
let mut enabled_llvm_projects = Vec :: new ( ) ;
412
412
413
- if util :: forcing_clang_based_tests ( ) {
413
+ if utils :: forcing_clang_based_tests ( ) {
414
414
enabled_llvm_projects. push ( "clang" ) ;
415
415
enabled_llvm_projects. push ( "compiler-rt" ) ;
416
416
}
@@ -528,8 +528,12 @@ impl Step for Llvm {
528
528
529
529
// If the shared library exists in LLVM's `/build/lib/` or `/lib/` folders, strip its
530
530
// debuginfo.
531
- crate :: compile:: strip_debug ( builder, target, & out_dir. join ( "lib" ) . join ( & lib_name) ) ;
532
- crate :: compile:: strip_debug (
531
+ crate :: core:: build_steps:: compile:: strip_debug (
532
+ builder,
533
+ target,
534
+ & out_dir. join ( "lib" ) . join ( & lib_name) ,
535
+ ) ;
536
+ crate :: core:: build_steps:: compile:: strip_debug (
533
537
builder,
534
538
target,
535
539
& out_dir. join ( "build" ) . join ( "lib" ) . join ( & lib_name) ,
@@ -853,7 +857,7 @@ impl Step for Lld {
853
857
}
854
858
855
859
let _guard = builder. msg_unstaged ( Kind :: Build , "LLD" , target) ;
856
- let _time = util :: timeit ( & builder) ;
860
+ let _time = utils :: timeit ( & builder) ;
857
861
t ! ( fs:: create_dir_all( & out_dir) ) ;
858
862
859
863
let mut cfg = cmake:: Config :: new ( builder. src . join ( "src/llvm-project/lld" ) ) ;
@@ -884,7 +888,7 @@ impl Step for Lld {
884
888
// `LD_LIBRARY_PATH` overrides)
885
889
//
886
890
if builder. config . rpath_enabled ( target)
887
- && util :: use_host_linker ( target)
891
+ && utils :: use_host_linker ( target)
888
892
&& builder. config . llvm_link_shared ( )
889
893
&& target. contains ( "linux" )
890
894
{
@@ -977,7 +981,7 @@ impl Step for Sanitizers {
977
981
978
982
let _guard = builder. msg_unstaged ( Kind :: Build , "sanitizers" , self . target ) ;
979
983
t ! ( stamp. remove( ) ) ;
980
- let _time = util :: timeit ( & builder) ;
984
+ let _time = utils :: timeit ( & builder) ;
981
985
982
986
let mut cfg = cmake:: Config :: new ( & compiler_rt_dir) ;
983
987
cfg. profile ( "Release" ) ;
0 commit comments