fix build err for taget `*-pc-windows-gnu`

This commit is contained in:
南浦月 2019-04-26 15:27:16 +08:00 committed by GitHub
parent 18eaa3d09e
commit 844c3c445a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@ fn main() {
let libs = match libs_env.as_ref().and_then(|s| s.to_str()) { let libs = match libs_env.as_ref().and_then(|s| s.to_str()) {
Some(ref v) => v.split(":").collect(), Some(ref v) => v.split(":").collect(),
None => match version { None => match version {
Version::Openssl10x if target.contains("windows") => vec!["ssleay32", "libeay32"], Version::Openssl10x if target.contains("windows-msvc") => vec!["ssleay32", "libeay32"],
Version::Openssl11x if target.contains("windows") => vec!["libssl", "libcrypto"], Version::Openssl11x if target.contains("windows-msvc") => vec!["libssl", "libcrypto"],
_ => vec!["ssl", "crypto"], _ => vec!["ssl", "crypto"],
}, },
}; };