Skip to content

Commit

Permalink
Do not link MKL when building document
Browse files Browse the repository at this point in the history
  • Loading branch information
termoshtt committed Aug 24, 2022
1 parent dfc509c commit 3a1c63c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions intel-mkl-src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ def_mkl_config!("mkl-dynamic-ilp64-seq");
const MKL_CONFIG: &str = "mkl-static-ilp64-iomp";

fn main() -> Result<()> {
if cfg!(doc) {
return Ok(());
}

let cfg = Config::from_str(MKL_CONFIG).unwrap();
if let Ok(lib) = Library::new(cfg) {
lib.print_cargo_metadata()?;
Expand Down

0 comments on commit 3a1c63c

Please sign in to comment.