From ba997c590e38104373e7430cf80dc1f56d6749a6 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 14 Oct 2016 22:55:14 -0700 Subject: [PATCH] Prefer 1.1 when looking for Homebrew installs --- openssl-sys/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openssl-sys/build.rs b/openssl-sys/build.rs index b6540368..5a009204 100644 --- a/openssl-sys/build.rs +++ b/openssl-sys/build.rs @@ -52,11 +52,11 @@ fn find_openssl_dir(target: &str) -> OsString { let host = env::var("HOST").unwrap(); 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() { 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() { return homebrew.to_path_buf().into() }