Skip to content

Commit 550ddbe

Browse files
committed
Implement windows ocipkg option
1 parent 9414e8d commit 550ddbe

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

intel-mkl-src/build.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,18 @@ fn main() -> Result<()> {
6666
// where ocipkg download archive is not searched by ld
6767
// unless user set `LD_LIBRARY_PATH` explictly.
6868
if cfg.link == LinkType::Static {
69-
let _ = ocipkg::link_package(&format!(
70-
"ghcr.io/rust-math/rust-mkl/{}:2020.1-2851133947",
71-
MKL_CONFIG
72-
));
69+
if cfg!(target_os = "linux") {
70+
let _ = ocipkg::link_package(&format!(
71+
"ghcr.io/rust-math/rust-mkl/linux/{}:2020.1-3038006115",
72+
MKL_CONFIG
73+
));
74+
}
75+
if cfg!(target_os = "windows") {
76+
let _ = ocipkg::link_package(&format!(
77+
"ghcr.io/rust-math/rust-mkl/windows/{}:2022.0-3038006115",
78+
MKL_CONFIG
79+
));
80+
}
7381
}
7482

7583
Ok(())

0 commit comments

Comments
 (0)