File tree Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -412,27 +412,11 @@ impl Library {
412
412
}
413
413
414
414
if self . config . parallel == Threading :: OpenMP {
415
- match (
416
- self . iomp5_static_dir . as_ref ( ) ,
417
- self . iomp5_dynamic_dir . as_ref ( ) ,
418
- ) {
419
- ( Some ( static_dir) , Some ( dynamic_dir) ) => match self . config . link {
420
- LinkType :: Static => {
421
- println ! ( "cargo:rustc-link-search={}" , static_dir. display( ) ) ;
422
- }
423
- LinkType :: Dynamic => {
424
- println ! ( "cargo:rustc-link-search={}" , dynamic_dir. display( ) ) ;
425
- }
426
- } ,
427
- ( Some ( static_dir) , None ) => {
428
- println ! ( "cargo:rustc-link-search={}" , static_dir. display( ) ) ;
429
- }
430
- ( None , Some ( dynamic_dir) ) => {
431
- println ! ( "cargo:rustc-link-search={}" , dynamic_dir. display( ) ) ;
432
- }
433
- _ => {
434
- bail ! ( "OpenMP runtime not found" ) ;
435
- }
415
+ if let Some ( ref dir) = self . iomp5_static_dir {
416
+ println ! ( "cargo:rustc-link-search={}" , dir. display( ) ) ;
417
+ }
418
+ if let Some ( ref dir) = self . iomp5_dynamic_dir {
419
+ println ! ( "cargo:rustc-link-search={}" , dir. display( ) ) ;
436
420
}
437
421
println ! ( "cargo:rustc-link-lib={}" , OPENMP_RUNTIME_LIB ) ;
438
422
}
You can’t perform that action at this time.
0 commit comments