File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
1
//! Execute make of OpenBLAS, and its options
2
2
3
3
use crate :: { check:: * , error:: * } ;
4
- use std:: {
5
- fs,
6
- os:: unix:: io:: * ,
7
- path:: * ,
8
- process:: { Command , Stdio } ,
9
- str:: FromStr ,
10
- } ;
4
+ use std:: { fs, path:: * , process:: Command , str:: FromStr } ;
11
5
use walkdir:: WalkDir ;
12
6
13
7
/// Interface for 32-bit interger (LP64) and 64-bit integer (ILP64)
@@ -397,8 +391,8 @@ impl Configure {
397
391
let err = fs:: File :: create ( out_dir. join ( "err.log" ) ) . expect ( "Cannot create log file" ) ;
398
392
match Command :: new ( "make" )
399
393
. current_dir ( out_dir)
400
- . stdout ( unsafe { Stdio :: from_raw_fd ( out. into_raw_fd ( ) ) } ) // this works only for unix
401
- . stderr ( unsafe { Stdio :: from_raw_fd ( err. into_raw_fd ( ) ) } )
394
+ . stdout ( out)
395
+ . stderr ( err)
402
396
. args ( & self . make_args ( ) )
403
397
. args ( [ "libs" , "netlib" , "shared" ] )
404
398
. env_remove ( "TARGET" )
You can’t perform that action at this time.
0 commit comments