Skip to content

Commit 65a2665

Browse files
committed
Do not capture stdout/err of make
1 parent 3258734 commit 65a2665

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

openblas-build/src/build.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
//! Execute make of OpenBLAS, and its options
22
33
use super::*;
4-
use std::{
5-
fs,
6-
os::unix::io::*,
7-
path::*,
8-
process::{Command, Stdio},
9-
};
4+
use std::{fs, path::*, process::Command};
105
use walkdir::WalkDir;
116

127
fn openblas_source_dir() -> PathBuf {
@@ -227,14 +222,9 @@ impl Configure {
227222
}
228223
}
229224

230-
let out = fs::File::create(out_dir.join("out.log")).expect("Cannot create log file");
231-
let err = fs::File::create(out_dir.join("err.log")).expect("Cannot create log file");
232-
233225
// This will automatically run in parallel without `-j` flag
234226
Command::new("make")
235227
.current_dir(out_dir)
236-
.stdout(unsafe { Stdio::from_raw_fd(out.into_raw_fd()) }) // this works only for unix
237-
.stderr(unsafe { Stdio::from_raw_fd(err.into_raw_fd()) })
238228
.args(&self.make_args())
239229
.check_call()?;
240230

0 commit comments

Comments
 (0)