aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.rs b/build.rs
index 904a69f..f3b1794 100644
--- a/build.rs
+++ b/build.rs
@@ -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();