diff options
| author | Robin Gloster <[email protected]> | 2015-02-12 18:25:45 +0100 |
|---|---|---|
| committer | Robin Gloster <[email protected]> | 2015-02-12 18:25:45 +0100 |
| commit | fabc1da31e04d0106d5b956648b2f60e16e13d41 (patch) | |
| tree | 21e25440f16ba4dd01c76a9fb7a0e724cdfa6e75 /openssl-sys/build.rs | |
| parent | Release v0.3.5 (diff) | |
| download | rust-openssl-fabc1da31e04d0106d5b956648b2f60e16e13d41.tar.xz rust-openssl-fabc1da31e04d0106d5b956648b2f60e16e13d41.zip | |
rustup to current master
Diffstat (limited to 'openssl-sys/build.rs')
| -rw-r--r-- | openssl-sys/build.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openssl-sys/build.rs b/openssl-sys/build.rs index 37048f03..29e70ccb 100644 --- a/openssl-sys/build.rs +++ b/openssl-sys/build.rs @@ -7,10 +7,10 @@ use std::env; use std::default::Default; fn main() { - let target = env::var_string("TARGET").unwrap(); + let target = env::var("TARGET").unwrap(); if target.contains("android") { - let path = env::var_string("OPENSSL_PATH").ok() + let path = env::var("OPENSSL_PATH").ok() .expect("Android does not provide openssl libraries, please build them yourself \ (instructions in the README) and provide their location through \ $OPENSSL_PATH."); @@ -56,6 +56,6 @@ fn build_old_openssl_shim(is_old: bool) { &config, &["src/old_openssl_shim.c"]); - let out_dir = env::var_string("OUT_DIR").unwrap(); + let out_dir = env::var("OUT_DIR").unwrap(); println!("cargo:rustc-flags=-L native={} -l old_openssl_shim:static", out_dir); } |