Skip to content

Commit 6e7f3c1

Browse files
committed
Use a correct library path on osx
1 parent 2f2c34e commit 6e7f3c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/path.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ fn collect_possible_directories() -> Vec<PathBuf> {
3737
}
3838
}
3939

40+
if let Ok(lib_paths) = env::var("DYLD_FALLBACK_LIBRARY_PATH") {
41+
for item in lib_paths.split(':') {
42+
paths.push(PathBuf::from(item));
43+
}
44+
}
45+
4046
if let Ok(bin_paths) = env::var("PATH") {
4147
for item in bin_paths.split(':') {
4248
let mut possible_path = PathBuf::from(item);

0 commit comments

Comments
 (0)