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:
parent
bb8e5b5824
commit
a0ff0f623a
2 changed files with 13 additions and 1 deletions
4
build.rs
4
build.rs
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue