Skip to content

Commit

Permalink
Merge pull request #105 from Dirreke/cross-compile
Browse files Browse the repository at this point in the history
add rerun-if flags
  • Loading branch information
termoshtt authored Jan 20, 2024
2 parents e3b0f0b + d341089 commit 57b4ffe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openblas-src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 57b4ffe

Please sign in to comment.