File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ use crate::install;
23
23
use crate :: native;
24
24
use crate :: test;
25
25
use crate :: tool;
26
- use crate :: util:: { self , add_lib_path , exe, libdir} ;
26
+ use crate :: util:: { self , add_dylib_path , exe, libdir} ;
27
27
use crate :: { Build , DocTests , GitRepo , Mode } ;
28
28
29
29
pub use crate :: Compiler ;
@@ -660,7 +660,7 @@ impl<'a> Builder<'a> {
660
660
return ;
661
661
}
662
662
663
- add_lib_path ( vec ! [ self . rustc_libdir( compiler) ] , & mut cmd. command ) ;
663
+ add_dylib_path ( vec ! [ self . rustc_libdir( compiler) ] , & mut cmd. command ) ;
664
664
}
665
665
666
666
/// Gets a path to the compiler specified.
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use crate::channel;
12
12
use crate :: channel:: GitInfo ;
13
13
use crate :: compile;
14
14
use crate :: toolstate:: ToolState ;
15
- use crate :: util:: { add_lib_path , exe, CiEnv } ;
15
+ use crate :: util:: { add_dylib_path , exe, CiEnv } ;
16
16
use crate :: Compiler ;
17
17
use crate :: Mode ;
18
18
@@ -388,7 +388,7 @@ pub struct ErrorIndex {
388
388
impl ErrorIndex {
389
389
pub fn command ( builder : & Builder < ' _ > , compiler : Compiler ) -> Command {
390
390
let mut cmd = Command :: new ( builder. ensure ( ErrorIndex { compiler } ) ) ;
391
- add_lib_path (
391
+ add_dylib_path (
392
392
vec ! [ PathBuf :: from( & builder. sysroot_libdir( compiler, compiler. host) ) ] ,
393
393
& mut cmd,
394
394
) ;
@@ -689,7 +689,7 @@ impl<'a> Builder<'a> {
689
689
}
690
690
}
691
691
692
- add_lib_path ( lib_paths, & mut cmd) ;
692
+ add_dylib_path ( lib_paths, & mut cmd) ;
693
693
cmd
694
694
}
695
695
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ pub fn libdir(target: &str) -> &'static str {
40
40
}
41
41
42
42
/// Adds a list of lookup paths to `cmd`'s dynamic library lookup path.
43
- pub fn add_lib_path ( path : Vec < PathBuf > , cmd : & mut Command ) {
43
+ pub fn add_dylib_path ( path : Vec < PathBuf > , cmd : & mut Command ) {
44
44
let mut list = dylib_path ( ) ;
45
45
for path in path {
46
46
list. insert ( 0 , path) ;
You can’t perform that action at this time.
0 commit comments