Skip to content

Commit a276c5f

Browse files
committed
Do not use from_raw_fd
1 parent dc996dd commit a276c5f

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

openblas-build/src/build.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
//! Execute make of OpenBLAS, and its options
22
33
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};
115
use walkdir::WalkDir;
126

137
/// Interface for 32-bit interger (LP64) and 64-bit integer (ILP64)
@@ -397,8 +391,8 @@ impl Configure {
397391
let err = fs::File::create(out_dir.join("err.log")).expect("Cannot create log file");
398392
match Command::new("make")
399393
.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)
402396
.args(&self.make_args())
403397
.args(["libs", "netlib", "shared"])
404398
.env_remove("TARGET")

0 commit comments

Comments
 (0)