ww: skip outputs for no-test command packages

This commit is contained in:
2026-08-15 02:50:08 +09:00
parent 7d73d31b38
commit 6d2319e14c
2 changed files with 5 additions and 4 deletions

View File

@@ -5204,8 +5204,9 @@ fn sepvalidaterequeststaging(g: *sepgraph, scratch: *u8, warm: bool,
if (emitasm == 0) {
let ownsoutput: bool = false;
if (rootpackage) { ownsoutput = publishpackage != 0; }
else { ownsoutput = (istest != 0 && !products[i].notests)
|| seprootiscommand(&g.pkg[products[i].root]); };
else { if (istest != 0) { ownsoutput = !products[i].notests; }
else { ownsoutput = seprootiscommand(
&g.pkg[products[i].root]); }; };
if (ownsoutput) {
products[i].stageout = sepprepareproductstage(
products[i].stageout, products[i].out);