Skip to content

Commit

Permalink
curl-sys: never try to link with /lib/darwin
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
catap committed Feb 17, 2022
1 parent 6225eed commit 8fdbc8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vendor/curl-sys/build.rs
Expand Up @@ -532,7 +532,9 @@ fn macos_link_search_path() -> Option<String> {
for line in stdout.lines() {
if line.contains("libraries: =") {
let path = line.split('=').skip(1).next()?;
return Some(format!("{}/lib/darwin", path));
if !path.is_empty() {
return Some(format!("{}/lib/darwin", path));
}
}
}

Expand Down

0 comments on commit 8fdbc8a

Please sign in to comment.