about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-06-20 14:56:38 +0200
committerGitHub <noreply@github.com>2022-06-20 14:56:38 +0200
commit85f1de20e76001db54d64ee0c3f9fec797075938 (patch)
treea3a48b7d1e82a50ff787ec06c0e055becfd09981 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent625c929a9fecc7fbaf7142faaab787ba8125a62f (diff)
parent740a54c69b1c426c2b08329ea278140eb0059d42 (diff)
downloadrust-85f1de20e76001db54d64ee0c3f9fec797075938.tar.gz
rust-85f1de20e76001db54d64ee0c3f9fec797075938.zip
Rollup merge of #97149 - ChrisDenton:win_async_pipes, r=m-ou-se
Windows: `CommandExt::async_pipes`

Discussed in https://github.com/tokio-rs/tokio/issues/4670 was the need for third party crates to be able to force `process::Command::spawn` to create pipes as async.

This implements the suggestion for a `async_pipes` method that gives third party crates that option.

# Example:

```rust
use std::process::{Command, Stdio};

Command::new("cmd")
    .async_pipes(true)
    .stdin(Stdio::piped())
    .stdout(Stdio::piped())
    .stderr(Stdio::piped())
    .spawn()
    .unwrap();
```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions