zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 557eb414eee96201d1ae01b15ebf8955eca1da6d (tree)
parent 5fcc922ff2e0cfc52122e0a00270463e4d58ff00
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Fri, 30 Apr 2021 21:55:28 -0700

CLI: fix incorrect error message with -cflags

Diffstat:
Msrc/main.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.zig b/src/main.zig @@ -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]); }