1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 02:57:44 +00:00

Temporary fix for errors in testing

The errors were caused by the missing env $OUT_DIR which should be set by
cargo.

[Related issue](https://github.com/rust-lang/cargo/issues/3368).
This commit is contained in:
knight42 2016-12-08 12:26:08 +08:00
parent bb8e5b5824
commit a0ff0f623a
2 changed files with 13 additions and 1 deletions

View file

@ -4,6 +4,10 @@ use std::io::Write;
use std::path::Path;
pub fn main() {
if let Ok(profile) = env::var("PROFILE") {
println!("cargo:rustc-cfg=build={:?}", profile);
}
let feature_prefix = "CARGO_FEATURE_";
let out_dir = env::var("OUT_DIR").unwrap();