diff --git a/openblas-src/build.rs b/openblas-src/build.rs index 572d7a3..51df5c9 100644 --- a/openblas-src/build.rs +++ b/openblas-src/build.rs @@ -112,6 +112,11 @@ fn main() { /// Build OpenBLAS using openblas-build crate #[cfg(target_os = "linux")] fn build() { + println!("cargo:rerun-if-env-changed=OPENBLAS_TARGET"); + println!("cargo:rerun-if-env-changed=OPENBLAS_CC"); + println!("cargo:rerun-if-env-changed=OPENBLAS_HOSTCC"); + println!("cargo:rerun-if-env-changed=OPENBLAS_FC"); + println!("cargo:rerun-if-env-changed=OPENBLAS_RANLIB"); let mut cfg = openblas_build::Configure::default(); if !feature_enabled("cblas") { cfg.no_cblas = true;