File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,6 @@ def_mkl_config!("mkl-dynamic-ilp64-seq");
54
54
const MKL_CONFIG : & str = "mkl-static-ilp64-iomp" ;
55
55
56
56
fn main ( ) -> Result < ( ) > {
57
- if let Ok ( _) = std:: env:: var ( "RUSTDOC" ) {
58
- return Ok ( ( ) ) ;
59
- }
60
-
61
57
let cfg = Config :: from_str ( MKL_CONFIG ) . unwrap ( ) ;
62
58
if let Ok ( lib) = Library :: new ( cfg) {
63
59
lib. print_cargo_metadata ( ) ?;
@@ -70,12 +66,11 @@ fn main() -> Result<()> {
70
66
// where ocipkg download archive is not searched by ld
71
67
// unless user set `LD_LIBRARY_PATH` explictly.
72
68
if cfg. link == LinkType :: Static {
73
- ocipkg:: link_package ( & format ! (
69
+ let _ = ocipkg:: link_package ( & format ! (
74
70
"ghcr.io/rust-math/rust-mkl/{}:2020.1-2851133947" ,
75
71
MKL_CONFIG
76
- ) ) ?;
77
- return Ok ( ( ) ) ;
72
+ ) ) ;
78
73
}
79
74
80
- bail ! ( "No MKL found" ) ;
75
+ Ok ( ( ) )
81
76
}
You can’t perform that action at this time.
0 commit comments