diff --git a/build.rs b/build.rs index a435c419146..d62b4f1ba8b 100644 --- a/build.rs +++ b/build.rs @@ -21,6 +21,7 @@ fn main() { // Do not build f3-sidecar on docs.rs publishing // No proper version of Go compiler is available. + println!("cargo:rerun-if-env-changed=FOREST_F3_SIDECAR_FFI_BUILD_OPT_OUT"); if !is_docs_rs() && !is_env_truthy("FOREST_F3_SIDECAR_FFI_BUILD_OPT_OUT") { println!("cargo:rustc-cfg=f3sidecar"); println!("cargo::rerun-if-changed=f3-sidecar");