Skip to content

Commit 86e0896

Browse files
authored
Merge pull request #173 from chenrui333/patch-1
Use `pkgconf` instead of `pkg-config` for brew builds
2 parents 3314c8d + 90743f8 commit 86e0896

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,12 @@ impl fmt::Display for Error {
300300
io::ErrorKind::NotFound => {
301301
let crate_name =
302302
std::env::var("CARGO_PKG_NAME").unwrap_or_else(|_| "sys".to_owned());
303-
let instructions = if cfg!(target_os = "macos") || cfg!(target_os = "ios") {
304-
"Try `brew install pkg-config` if you have Homebrew.\n"
303+
let instructions = if cfg!(target_os = "macos") {
304+
"Try `brew install pkgconf` if you have Homebrew.\n"
305+
} else if cfg!(target_os = "ios") {
306+
"" // iOS cross-compilation requires a custom setup, no easy fix
305307
} else if cfg!(unix) {
306-
"Try `apt install pkg-config`, or `yum install pkg-config`,\n\
308+
"Try `apt install pkg-config`, or `yum install pkg-config`, or `brew install pkgconf`\n\
307309
or `pkg install pkg-config`, or `apk add pkgconfig` \
308310
depending on your distribution.\n"
309311
} else {

0 commit comments

Comments
 (0)