mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
CLI: fix incorrect error message with -cflags
This commit is contained in:
1 parent
5fcc922ff2
commit
557eb414ee
1 file changed
+1
-1
+1
-1
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user