Rustup
This commit is contained in:
parent
63d2cd263e
commit
cedc85c550
11 changed files with 28 additions and 19 deletions
4
build.rs
4
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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue