File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,7 @@ fn main() -> Fallible<()> {
51
51
}
52
52
53
53
Opt :: Package { path } => {
54
- let out = intel_mkl_tool:: package ( & path) ?;
55
- println ! ( "{}" , out. display( ) ) ;
54
+ let _out = intel_mkl_tool:: package ( & path) ?;
56
55
}
57
56
}
58
57
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -122,10 +122,12 @@ pub fn package(mkl_path: &Path) -> Fallible<PathBuf> {
122
122
bail ! ( "MKL directory not found: {}" , mkl_path. display( ) ) ;
123
123
}
124
124
let ( year, update) = get_mkl_version ( & mkl_path. join ( "include/mkl_version.h" ) ) ?;
125
+ let out = PathBuf :: from ( format ! ( "mkl_linux64_{}_{}.tar.zst" , year, update) ) ;
126
+ info ! ( "Intel MKL version: {}.{}" , year, update) ;
127
+ info ! ( "Create archive for Linux/64bit systems: {}" , out. display( ) ) ;
125
128
let shared_libs: Vec < _ > = glob ( mkl_path. join ( "lib/intel64/*.so" ) . to_str ( ) . unwrap ( ) ) ?
126
129
. map ( |path| path. unwrap ( ) )
127
130
. collect ( ) ;
128
- let out = PathBuf :: from ( format ! ( "mkl_linux64_{}_{}.tar.zst" , year, update) ) ;
129
131
let f = fs:: File :: create ( & out) ?;
130
132
let buf = io:: BufWriter :: new ( f) ;
131
133
let zstd = zstd:: stream:: write:: Encoder :: new ( buf, 6 ) ?;
You can’t perform that action at this time.
0 commit comments