diff options
author | Steven Fackler <sfackler@gmail.com> | 2016-11-04 22:08:08 -0700 |
---|---|---|
committer | Steven Fackler <sfackler@gmail.com> | 2016-11-04 22:08:08 -0700 |
commit | 3421ee126c3ef3a85b2415b32e5b9a0109c8f762 (patch) | |
tree | b1d94bf17aeebc2ab0a21437210e0d3dfa3a8973 /systest | |
parent | fb9420fc91c750bb6f3e40ce13665339dcebe1be (diff) | |
download | rust-openssl-3421ee126c3ef3a85b2415b32e5b9a0109c8f762.zip |
Fix systest
Diffstat (limited to 'systest')
-rw-r--r-- | systest/build.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/systest/build.rs b/systest/build.rs index 38d43995..81907a57 100644 --- a/systest/build.rs +++ b/systest/build.rs @@ -22,16 +22,8 @@ fn main() { } } - if env::var("DEP_OPENSSL_IS_101").is_ok() { - cfg.cfg("ossl101", None); - } - if env::var("DEP_OPENSSL_IS_102").is_ok() { - cfg.cfg("ossl102", None); - } - if env::var("DEP_OPENSSL_IS_110").is_ok() { - cfg.cfg("ossl110", None); - } - if let Ok(vars) = env::var("DEP_OPENSSL_OSSLCONF") { + cfg.cfg(&format!("ossl{}", env::var("DEP_OPENSSL_VERSION").unwrap()), None); + if let Ok(vars) = env::var("DEP_OPENSSL_CONF") { for var in vars.split(",") { cfg.cfg("osslconf", Some(var)); } |