mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Stop using deprecated os::getenv function
This commit is contained in:
parent
4dc14280a8
commit
6bafd4108d
6
build.rs
6
build.rs
|
@ -2,12 +2,12 @@
|
||||||
extern crate gl_generator;
|
extern crate gl_generator;
|
||||||
extern crate khronos_api;
|
extern crate khronos_api;
|
||||||
|
|
||||||
use std::os;
|
use std::env;
|
||||||
use std::old_io::File;
|
use std::old_io::File;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let target = os::getenv("TARGET").unwrap();
|
let target = env::var("TARGET").unwrap();
|
||||||
let dest = Path::new(os::getenv("OUT_DIR").unwrap());
|
let dest = Path::new(env::var("OUT_DIR").unwrap());
|
||||||
|
|
||||||
if target.contains("windows") {
|
if target.contains("windows") {
|
||||||
let mut file = File::create(&dest.join("wgl_bindings.rs")).unwrap();
|
let mut file = File::create(&dest.join("wgl_bindings.rs")).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue