diff --git a/crates/resource-resolver/build.rs b/crates/resource-resolver/build.rs index 1352994f..4fdc4b39 100644 --- a/crates/resource-resolver/build.rs +++ b/crates/resource-resolver/build.rs @@ -4,6 +4,7 @@ fn main() { if env::var("CARGO_FEATURE_AUTO_DETECT_FORMAT").is_ok() { println!("cargo:rerun-if-env-changed=CARGO_PACKAGER_FORMAT"); if let Ok(var) = env::var("CARGO_PACKAGER_FORMAT") { + println!("cargo:rustc-check-cfg=CARGO_PACKAGER_FORMAT=\"{}\"", var); println!("cargo:rustc-cfg=CARGO_PACKAGER_FORMAT=\"{}\"", var); } }