aboutsummaryrefslogtreecommitdiffstats
path: root/build.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-03-25 21:35:21 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-03-25 21:35:21 +0100
commitf31cbf2a027bc0b1c3263d5942388cd464ee9048 (patch)
treeea7126ccb056d6b8da8e668abc75e924308e907a /build.rs
parent63d2cd263ee3e68118213ae5b8ba1326fc3ee03e (diff)
parentcedc85c55032afca28fe9b4a1bd11499267f6009 (diff)
downloadglutin-f31cbf2a027bc0b1c3263d5942388cd464ee9048.tar.gz
glutin-f31cbf2a027bc0b1c3263d5942388cd464ee9048.zip
Merge pull request #326 from tomaka/rustup
Rustup
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.rs b/build.rs
index 7137d3e..2a42179 100644
--- a/build.rs
+++ b/build.rs
@@ -1,3 +1,5 @@
+#![feature(convert)]
+
extern crate gl_generator;
extern crate khronos_api;
@@ -7,7 +9,7 @@ use std::path::PathBuf;
fn main() {
let target = env::var("TARGET").unwrap();
- let dest = PathBuf::new(&env::var("OUT_DIR").unwrap());
+ let dest = PathBuf::from(&env::var("OUT_DIR").unwrap());
if target.contains("windows") {
let mut file = File::create(&dest.join("wgl_bindings.rs")).unwrap();