Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/bootstrap/src/core/builder/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ impl Builder<'_> {
.arg("--print=file-names")
.arg("--crate-type=proc-macro")
.arg("-")
.stdin(std::process::Stdio::null())
.run_capture(self)
.stderr();

Expand Down
5 changes: 5 additions & 0 deletions src/bootstrap/src/utils/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ impl<'a> BootstrapCommand {
self
}

pub fn stdin(&mut self, stdin: std::process::Stdio) -> &mut Self {
self.command.stdin(stdin);
self
}

#[must_use]
pub fn delay_failure(self) -> Self {
Self { failure_behavior: BehaviorOnFailure::DelayFail, ..self }
Expand Down