File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,6 @@ exclude = ["mkl_lib/mkl.tar.xz"]
1919default = []
2020use-shared = []
2121
22- [build-dependencies ]
23- failure = " 0.1"
24-
2522[build-dependencies .intel-mkl-tool ]
2623version = " 0.1.0"
2724path = " ../intel-mkl-tool"
Original file line number Diff line number Diff line change 2020// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121// SOFTWARE.
2222
23- use failure:: * ;
2423use std:: { env, path:: * } ;
2524
26- fn main ( ) -> Fallible < ( ) > {
25+ fn main ( ) {
2726 let out_dir = if let Some ( path) = intel_mkl_tool:: seek_pkg_config ( ) {
2827 path
2928 } else {
3029 let out_dir = if cfg ! ( feature = "use-shared" ) {
3130 intel_mkl_tool:: home_library_path ( )
3231 } else {
33- PathBuf :: from ( env:: var ( "OUT_DIR" ) . unwrap ( ) )
32+ PathBuf :: from ( env:: var ( "OUT_DIR" ) . expect ( "Failed to get OUT_DIR" ) )
3433 } ;
3534
36- intel_mkl_tool:: download ( & out_dir) ? ;
35+ intel_mkl_tool:: download ( & out_dir) . expect ( "Failed to downalod Intel-MKL archive" ) ;
3736 out_dir
3837 } ;
3938 println ! ( "cargo:rustc-link-search={}" , out_dir. display( ) ) ;
4039 println ! ( "cargo:rustc-link-lib=mkl_intel_lp64" ) ;
4140 println ! ( "cargo:rustc-link-lib=mkl_sequential" ) ;
4241 println ! ( "cargo:rustc-link-lib=mkl_core" ) ;
43- Ok ( ( ) )
4442}
You can’t perform that action at this time.
0 commit comments