diff options
| author | Steven Fackler <[email protected]> | 2015-02-12 13:20:32 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-02-12 13:20:32 -0800 |
| commit | 12d30628fe49cc96abe223804b46fb3ea0f6b39a (patch) | |
| tree | 420ea58299eff67eb590f35368dd667629733776 /openssl-sys/build.rs | |
| parent | Move BSD special case after pkg-config lookups (diff) | |
| parent | rustup to current master (diff) | |
| download | rust-openssl-12d30628fe49cc96abe223804b46fb3ea0f6b39a.tar.xz rust-openssl-12d30628fe49cc96abe223804b46fb3ea0f6b39a.zip | |
Merge pull request #160 from globin/fix/rustup
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 a3b9981e..44d8863c 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."); @@ -59,6 +59,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); } |