Skip to content

Commit 71f5aed

Browse files
committed
Rename add_lib_path to add_dylib_path
1 parent f509b26 commit 71f5aed

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/bootstrap/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::install;
2323
use crate::native;
2424
use crate::test;
2525
use crate::tool;
26-
use crate::util::{self, add_lib_path, exe, libdir};
26+
use crate::util::{self, add_dylib_path, exe, libdir};
2727
use crate::{Build, DocTests, GitRepo, Mode};
2828

2929
pub use crate::Compiler;
@@ -660,7 +660,7 @@ impl<'a> Builder<'a> {
660660
return;
661661
}
662662

663-
add_lib_path(vec![self.rustc_libdir(compiler)], &mut cmd.command);
663+
add_dylib_path(vec![self.rustc_libdir(compiler)], &mut cmd.command);
664664
}
665665

666666
/// Gets a path to the compiler specified.

src/bootstrap/tool.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::channel;
1212
use crate::channel::GitInfo;
1313
use crate::compile;
1414
use crate::toolstate::ToolState;
15-
use crate::util::{add_lib_path, exe, CiEnv};
15+
use crate::util::{add_dylib_path, exe, CiEnv};
1616
use crate::Compiler;
1717
use crate::Mode;
1818

@@ -388,7 +388,7 @@ pub struct ErrorIndex {
388388
impl ErrorIndex {
389389
pub fn command(builder: &Builder<'_>, compiler: Compiler) -> Command {
390390
let mut cmd = Command::new(builder.ensure(ErrorIndex { compiler }));
391-
add_lib_path(
391+
add_dylib_path(
392392
vec![PathBuf::from(&builder.sysroot_libdir(compiler, compiler.host))],
393393
&mut cmd,
394394
);
@@ -689,7 +689,7 @@ impl<'a> Builder<'a> {
689689
}
690690
}
691691

692-
add_lib_path(lib_paths, &mut cmd);
692+
add_dylib_path(lib_paths, &mut cmd);
693693
cmd
694694
}
695695
}

src/bootstrap/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub fn libdir(target: &str) -> &'static str {
4040
}
4141

4242
/// 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) {
4444
let mut list = dylib_path();
4545
for path in path {
4646
list.insert(0, path);

0 commit comments

Comments
 (0)