driver: implement post-target run argv semantics

This commit is contained in:
2026-08-23 17:33:31 +09:00
parent 0b24b11d65
commit 29122f2a48
6 changed files with 579 additions and 17 deletions

View File

@@ -9832,12 +9832,11 @@ fn dorun(selfdir: *u8, argv: **u8, argc: i32, start: i32) i32 = {
}; }; }; };
i += 1;
} else {
if (src == nil) {
src = p;
i += 1;
} else {
passstart = i;
};
src = p;
i += 1;
// The first target ends driver option parsing. The exact
// suffix, including flag-like operands, belongs to the program.
passstart = i;
};
};
};