diff options
| author | Christine Dodrill <me@christine.website> | 2021-03-03 23:37:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-03 23:37:47 -0500 |
| commit | 08865c84b60887ec96d417986892829fb3cd690c (patch) | |
| tree | ada28a006a5ddfe8ed3a82861c3e3035173f4bf6 /src | |
| parent | b10c09750495bee3fc4b8aa9de39abc668bd4ad7 (diff) | |
| download | xesite-08865c84b60887ec96d417986892829fb3cd690c.tar.xz xesite-08865c84b60887ec96d417986892829fb3cd690c.zip | |
Windows pain (#336)
* blog: start on windows pain post
Signed-off-by: Christine Dodrill <me@christine.website>
* flags
Signed-off-by: Christine Dodrill <me@christine.website>
* more
Signed-off-by: Christine Dodrill <me@christine.website>
* yse
Signed-off-by: Christine Dodrill <me@christine.website>
Diffstat (limited to 'src')
| -rw-r--r-- | src/build.rs | 7 |
1 files changed, 3 insertions, 4 deletions
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 } |
