Skip to content

Commit

Permalink
zig cc: fix wrong flag name from earlier commit
Browse files Browse the repository at this point in the history
In dfe9420, I made a typo. This commit
corrects it. I tested this commit via a patch to zig-bootstrap.
  • Loading branch information
andrewrk committed Dec 6, 2022
1 parent 861aa98 commit 80be5e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,7 @@ fn buildOutputType(
fatal("expected linker arg after '{s}'", .{arg});
}
entry = linker_args.items[i];
} else if (mem.eql(u8, arg, "--stack") or mem.eql(u8, arg, "-stack")) {
} else if (mem.eql(u8, arg, "--stack") or mem.eql(u8, arg, "-stack_size")) {
i += 1;
if (i >= linker_args.items.len) {
fatal("expected linker arg after '{s}'", .{arg});
Expand Down

0 comments on commit 80be5e4

Please sign in to comment.