Rerun on changed BFFHD_BUILD_TAGGED_RELEASE env var

This commit is contained in:
Nadja Reitzenstein 2022-03-16 15:17:09 +01:00
parent 80ceb4af34
commit 7f362c7ab4

View File

@ -48,6 +48,7 @@ fn main() {
let rustc_version = rustc_version.trim();
println!("cargo:rustc-env=CARGO_RUSTC_VERSION={}", rustc_version);
println!("cargo:rerun-if-env-changed=BFFHD_BUILD_TAGGED_RELEASE");
let tagged_release = option_env!("BFFHD_BUILD_TAGGED_RELEASE") == Some("1");
let release = if tagged_release {
format!("BFFH {version} [{rustc}]",