mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
CLI: fix incorrect error message with -cflags
This commit is contained in:
parent
5fcc922ff2
commit
557eb414ee
@ -672,7 +672,7 @@ fn buildOutputType(
|
||||
extra_cflags.shrinkRetainingCapacity(0);
|
||||
while (true) {
|
||||
i += 1;
|
||||
if (i + 1 >= args.len) fatal("expected -- after -cflags", .{});
|
||||
if (i >= args.len) fatal("expected -- after -cflags", .{});
|
||||
if (mem.eql(u8, args[i], "--")) break;
|
||||
try extra_cflags.append(args[i]);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user