From d341089ce130c86786480af3025763e12f8ff5d4 Mon Sep 17 00:00:00 2001 From: Dirreck Date: Thu, 22 Jun 2023 14:50:58 +0800 Subject: [PATCH] add rerun-if flags --- openblas-src/build.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openblas-src/build.rs b/openblas-src/build.rs index 9262344..b840667 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;