Skip to content

Commit

Permalink
Merge pull request #2 from alexcrichton/fix-beta
Browse files Browse the repository at this point in the history
Use env::var_os intead of env! in build script
  • Loading branch information
SkylerLipthay authored Dec 28, 2016
2 parents 7953798 + 10f7cc6 commit 6f65612
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ extern crate csv;
extern crate phf_codegen;
extern crate rustc_serialize;

use std::env;
use std::fs::File;
use std::io::{BufWriter, Write};
use std::path::Path;
Expand Down Expand Up @@ -60,7 +61,7 @@ impl TempRecord {
}

fn main() {
let path = Path::new(env!("OUT_DIR")).join("codegen.rs");
let path = Path::new(&env::var_os("OUT_DIR").unwrap()).join("codegen.rs");
let mut file = BufWriter::new(File::create(&path).unwrap());

write!(&mut file, "static ZIP_CODES: phf::Map<&'static str, Record> = ").unwrap();
Expand Down

0 comments on commit 6f65612

Please sign in to comment.