Fully wrap feature checks

Otherwise OPENSSL_NO_EC2M would also trigger OPENSSL_NO_EC
This commit is contained in:
Steven Fackler 2017-08-10 20:52:31 -07:00
parent 8078db03ad
commit 78e37bb2e1
1 changed files with 2 additions and 2 deletions

View File

@ -301,7 +301,7 @@ RUST_OPENSSL_OLD
file,
"\
#ifdef {define}
RUST_{define}
RUST_{define}_RUST
#endif
",
define = define
@ -345,7 +345,7 @@ See rust-openssl README for more information:
let mut enabled = vec![];
for &define in DEFINES {
if expanded.contains(&format!("RUST_{}", define)) {
if expanded.contains(&format!("RUST_{}_RUST", define)) {
println!("cargo:rustc-cfg=osslconf=\"{}\"", define);
enabled.push(define);
}