You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let accepts_cl_style_flags = run(Command::new(path).arg("-?"), path,&{
// the errors are not errors!
letmut cargo_output = cargo_output.clone();
cargo_output.warnings = cargo_output.debug;
cargo_output.output = OutputKind::Discard;
cargo_output
})
If cl.exe detects there's a console then it will paginate its output, prompting the user to press enter to continue. This is a problem when cargo_output.debug is set to true because then we will forward stderr to what may, potentially, be a console handle.
Easiest fix is probably to set .stdin to Stdio::null() so cl.exe always knows there's no input to wait for.
The text was updated successfully, but these errors were encountered:
This line can, in certain situations, block indefinitely
cc-rs/src/tool.rs
Lines 161 to 167 in a0441c3
If
cl.exe
detects there's a console then it will paginate its output, prompting the user to press enter to continue. This is a problem whencargo_output.debug
is set totrue
because then we will forwardstderr
to what may, potentially, be a console handle.Easiest fix is probably to set
.stdin
toStdio::null()
socl.exe
always knows there's no input to wait for.The text was updated successfully, but these errors were encountered: