mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-16 01:05:02 +01:00
make better
This commit is contained in:
parent
f7395cd817
commit
79b69fafb9
7 changed files with 182 additions and 82 deletions
|
|
@ -92,7 +92,7 @@ impl Build {
|
|||
let (is_ice, output) = match &self.inner.mode {
|
||||
BuildMode::Cargo { args } => {
|
||||
let mut cmd = Command::new("cargo");
|
||||
cmd.arg("build");
|
||||
cmd.args(["build", "--color=always"]);
|
||||
|
||||
for arg in args.iter().flatten() {
|
||||
cmd.arg(arg);
|
||||
|
|
@ -107,8 +107,8 @@ impl Build {
|
|||
let output = String::from_utf8(outputs.stderr)?;
|
||||
|
||||
(
|
||||
outputs.status.code() == Some(101)
|
||||
|| output.contains("internal compiler error"),
|
||||
// Cargo always exits with 101 when rustc has an error.
|
||||
output.contains("internal compiler error") || output.contains("' panicked at"),
|
||||
output,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue