@@ -122,12 +122,28 @@ 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
125
info ! ( "Intel MKL version: {}.{}" , year, update) ;
127
- info ! ( "Create archive for Linux/64bit systems: {}" , out. display( ) ) ;
128
- let shared_libs: Vec < _ > = glob ( mkl_path. join ( "lib/intel64/*.so" ) . to_str ( ) . unwrap ( ) ) ?
129
- . map ( |path| path. unwrap ( ) )
130
- . collect ( ) ;
126
+ let out = if cfg ! ( target_os = "Linux" ) {
127
+ let out = PathBuf :: from ( format ! ( "mkl_linux64_{}_{}.tar.zst" , year, update) ) ;
128
+ info ! ( "Create archive for Linux/64bit systems: {}" , out. display( ) ) ;
129
+ out
130
+ } else {
131
+ let out = PathBuf :: from ( format ! ( "mkl_windows64_{}_{}.tar.zst" , year, update) ) ;
132
+ info ! (
133
+ "Create archive for Windows/64bit systems: {}" ,
134
+ out. display( )
135
+ ) ;
136
+ out
137
+ } ;
138
+
139
+ let shared_libs: Vec < _ > = glob (
140
+ mkl_path
141
+ . join ( format ! ( "lib/intel64/*.{}" , mkl:: EXT ) )
142
+ . to_str ( )
143
+ . unwrap ( ) ,
144
+ ) ?
145
+ . map ( |path| path. unwrap ( ) )
146
+ . collect ( ) ;
131
147
let f = fs:: File :: create ( & out) ?;
132
148
let buf = io:: BufWriter :: new ( f) ;
133
149
let zstd = zstd:: stream:: write:: Encoder :: new ( buf, 6 ) ?;
0 commit comments