mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.Build.Step.Options: clear content on rerun
This commit is contained in:
parent
52ad126bb4
commit
bbbbb87b99
1 changed files with 3 additions and 0 deletions
|
|
@ -443,6 +443,9 @@ fn make(step: *Step, make_options: Step.MakeOptions) !void {
|
||||||
const b = step.owner;
|
const b = step.owner;
|
||||||
const options: *Options = @fieldParentPtr("step", step);
|
const options: *Options = @fieldParentPtr("step", step);
|
||||||
|
|
||||||
|
// There might be content already, for example from previous run in watch mode
|
||||||
|
options.contents.clearRetainingCapacity();
|
||||||
|
|
||||||
for (options.args.items) |item| {
|
for (options.args.items) |item| {
|
||||||
options.addOption(
|
options.addOption(
|
||||||
[]const u8,
|
[]const u8,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue