Skip to content

Commit 8fdbc8a

Browse files
committed
curl-sys: never try to link with /lib/darwin
`clang --print-search-dirs` may return `libraries: =` that leads to `/lib/darwin` which may leads to attempt to find `clang_rt.osx` inside this wired path and which fails the build.
1 parent 6225eed commit 8fdbc8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vendor/curl-sys/build.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,9 @@ fn macos_link_search_path() -> Option<String> {
532532
for line in stdout.lines() {
533533
if line.contains("libraries: =") {
534534
let path = line.split('=').skip(1).next()?;
535-
return Some(format!("{}/lib/darwin", path));
535+
if !path.is_empty() {
536+
return Some(format!("{}/lib/darwin", path));
537+
}
536538
}
537539
}
538540

0 commit comments

Comments
 (0)