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 bd8c2d2173
commit cb8cda39cd

View File

@ -12,6 +12,7 @@ fn main() {
let rustc_version = rustc_version.trim(); let rustc_version = rustc_version.trim();
println!("cargo:rustc-env=CARGO_RUSTC_VERSION={}", rustc_version); 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 tagged_release = option_env!("BFFHD_BUILD_TAGGED_RELEASE") == Some("1");
let release = if tagged_release { let release = if tagged_release {
format!("BFFH {version} [{rustc}]", format!("BFFH {version} [{rustc}]",