File tree 1 file changed +25
-0
lines changed
src/tools/run-make-support/src/external_deps
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1
1
use std:: ffi:: { OsStr , OsString } ;
2
2
use std:: path:: Path ;
3
+ use std:: process:: Stdio ;
3
4
4
5
use crate :: command:: Command ;
5
6
use crate :: env:: env_var;
@@ -300,6 +301,30 @@ impl Rustc {
300
301
self
301
302
}
302
303
304
+ /// Configuration for the child process’s standard input (stdin) handle.
305
+ ///
306
+ /// See [`std::process::Command::stdin`].
307
+ pub fn stdin < T : Into < Stdio > > ( & mut self , cfg : T ) -> & mut Self {
308
+ self . cmd . stdin ( cfg) ;
309
+ self
310
+ }
311
+
312
+ /// Configuration for the child process’s standard output (stdout) handle.
313
+ ///
314
+ /// See [`std::process::Command::stdout`].
315
+ pub fn stdout < T : Into < Stdio > > ( & mut self , cfg : T ) -> & mut Self {
316
+ self . cmd . stdout ( cfg) ;
317
+ self
318
+ }
319
+
320
+ /// Configuration for the child process’s standard error (stderr) handle.
321
+ ///
322
+ /// See [`std::process::Command::stderr`].
323
+ pub fn stderr < T : Into < Stdio > > ( & mut self , cfg : T ) -> & mut Self {
324
+ self . cmd . stderr ( cfg) ;
325
+ self
326
+ }
327
+
303
328
/// Specify the crate name.
304
329
pub fn crate_name < S : AsRef < OsStr > > ( & mut self , name : S ) -> & mut Self {
305
330
self . cmd . arg ( "--crate-name" ) ;
You can’t perform that action at this time.
0 commit comments