Prefer 1.1 when looking for Homebrew installs

This commit is contained in:
Steven Fackler 2016-10-14 22:55:14 -07:00
parent 55b960fb92
commit ba997c590e
1 changed files with 2 additions and 2 deletions

View File

@ -52,11 +52,11 @@ fn find_openssl_dir(target: &str) -> OsString {
let host = env::var("HOST").unwrap(); let host = env::var("HOST").unwrap();
if host.contains("apple-darwin") && target.contains("apple-darwin") { if host.contains("apple-darwin") && target.contains("apple-darwin") {
let homebrew = Path::new("/usr/local/opt/openssl"); let homebrew = Path::new("/usr/local/opt/openssl@1.1");
if homebrew.exists() { if homebrew.exists() {
return homebrew.to_path_buf().into() return homebrew.to_path_buf().into()
} }
let homebrew = Path::new("/usr/local/opt/openssl@1.1"); let homebrew = Path::new("/usr/local/opt/openssl");
if homebrew.exists() { if homebrew.exists() {
return homebrew.to_path_buf().into() return homebrew.to_path_buf().into()
} }