File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -300,10 +300,12 @@ impl fmt::Display for Error {
300
300
io:: ErrorKind :: NotFound => {
301
301
let crate_name =
302
302
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
305
307
} 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 \
307
309
or `pkg install pkg-config`, or `apk add pkgconfig` \
308
310
depending on your distribution.\n "
309
311
} else {
You can’t perform that action at this time.
0 commit comments