Skip to content

Commit 59b4a98

Browse files
committed
Do not link MKL when building document
1 parent dfc509c commit 59b4a98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

intel-mkl-src/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ 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+
5761
let cfg = Config::from_str(MKL_CONFIG).unwrap();
5862
if let Ok(lib) = Library::new(cfg) {
5963
lib.print_cargo_metadata()?;

0 commit comments

Comments
 (0)