Skip to content

Commit 8c14902

Browse files
committed
Exit success from intel-mkl-src/build.rs even if MKL not found
1 parent 59b4a98 commit 8c14902

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

intel-mkl-src/build.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ def_mkl_config!("mkl-dynamic-ilp64-seq");
5454
const MKL_CONFIG: &str = "mkl-static-ilp64-iomp";
5555

5656
fn main() -> Result<()> {
57-
if let Ok(_) = std::env::var("RUSTDOC") {
58-
return Ok(());
59-
}
60-
6157
let cfg = Config::from_str(MKL_CONFIG).unwrap();
6258
if let Ok(lib) = Library::new(cfg) {
6359
lib.print_cargo_metadata()?;
@@ -70,12 +66,11 @@ fn main() -> Result<()> {
7066
// where ocipkg download archive is not searched by ld
7167
// unless user set `LD_LIBRARY_PATH` explictly.
7268
if cfg.link == LinkType::Static {
73-
ocipkg::link_package(&format!(
69+
let _ = ocipkg::link_package(&format!(
7470
"ghcr.io/rust-math/rust-mkl/{}:2020.1-2851133947",
7571
MKL_CONFIG
76-
))?;
77-
return Ok(());
72+
));
7873
}
7974

80-
bail!("No MKL found");
75+
Ok(())
8176
}

0 commit comments

Comments
 (0)