Skip to content

Commit df5c97d

Browse files
committed
fix args on windows
1 parent b1f80c5 commit df5c97d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

build/chmod.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
pub fn main(init: std.process.Init) !void {
66
const io = init.io;
7-
var args = init.minimal.args.iterate();
7+
const arena = init.arena.allocator();
8+
9+
var args = try init.minimal.args.iterateAllocator(arena);
810
_ = args.skip();
911
while (args.next()) |path| {
1012
const file = std.Io.Dir.cwd().openFile(

build/clar_fix.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub fn main(init: std.process.Init) !void {
1010
const io = init.io;
1111
const arena = init.arena.allocator();
1212

13-
var args = init.minimal.args.iterate();
13+
var args = try init.minimal.args.iterateAllocator(arena);
1414
_ = args.skip();
1515

1616
const clar_fixture_h = args.next() orelse fatal("expected path to 'clar/fixtures.h' file", .{});

0 commit comments

Comments
 (0)