Fully wrap feature checks
Otherwise OPENSSL_NO_EC2M would also trigger OPENSSL_NO_EC
This commit is contained in:
parent
8078db03ad
commit
78e37bb2e1
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue