CLI: fix incorrect error message with -cflags

This commit is contained in:
Andrew Kelley 2021-04-30 21:55:28 -07:00
parent 5fcc922ff2
commit 557eb414ee

View File

@ -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]);
}