Merge pull request #310 from frewsxcv/dep-env

Stop using deprecated os::getenv function
This commit is contained in:
tomaka 2015-03-12 06:57:38 +01:00
commit 183d96b44e

View file

@ -2,12 +2,12 @@
extern crate gl_generator;
extern crate khronos_api;
use std::os;
use std::env;
use std::old_io::File;
fn main() {
let target = os::getenv("TARGET").unwrap();
let dest = Path::new(os::getenv("OUT_DIR").unwrap());
let target = env::var("TARGET").unwrap();
let dest = Path::new(env::var("OUT_DIR").unwrap());
if target.contains("windows") {
let mut file = File::create(&dest.join("wgl_bindings.rs")).unwrap();