From 08865c84b60887ec96d417986892829fb3cd690c Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Wed, 3 Mar 2021 23:37:47 -0500 Subject: Windows pain (#336) * blog: start on windows pain post Signed-off-by: Christine Dodrill * flags Signed-off-by: Christine Dodrill * more Signed-off-by: Christine Dodrill * yse Signed-off-by: Christine Dodrill --- src/build.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/build.rs b/src/build.rs index 7c3f12d..d2fb8e2 100644 --- a/src/build.rs +++ b/src/build.rs @@ -9,15 +9,14 @@ fn main() -> Result<()> { .output() .unwrap(); - if std::env::var("out").is_err() { - println!("cargo:rustc-env=out=/yolo"); - } + let out = std::env::var("out").unwrap_or("/fake".into()); + println!("cargo:rustc-env=out={}", out); let git_hash = String::from_utf8(output.stdout).unwrap(); println!( "cargo:rustc-env=GITHUB_SHA={}", if git_hash.as_str() == "" { - env!("out").into() + out.into() } else { git_hash } -- cgit v1.2.3