Merge pull request #3235 from lightpanda-io/cargo-non-error-progress

chore: don't let cargo's build progress show up as a "failed command"
This commit is contained in:
Karl Seguin authored and GitHub committed 2026-08-21 07:30:54 +08:00
commit 038257dfd7
1 file changed
+4
+4
View File
@@ -347,6 +347,10 @@ fn linkHtml5Ever(b: *Build, mod: *Build.Module) void {
exec_cargo.addFileInput(b.path(path));
}
// don't let cargo's progress report (sent to stderr) cause Zig's build to
// print a 'failed command: ...' message. (non-zero status still outputs the error)
_ = exec_cargo.captureStdErr(.{});
// TODO: We can prefer `--artifact-dir` once it become stable.
const out_dir = exec_cargo.addPrefixedOutputDirectoryArg("--target-dir=", "html5ever");