authorgravatar for aikawayataro@protonmail.comAikawa Yataro <aikawayataro@protonmail.com> 2024-07-06 02:05:55+00:00
committergravatar for aikawayataro@protonmail.comAikawa Yataro <aikawayataro@protonmail.com> 2024-07-06 02:05:55+00:00
log3a22ad70354903ccde2e7274c97e5393ef32d274
treeb45d1d963851f7d6c1e84e39f36ec4259f834c67
parentbf588f67d8c6261105f81fd468c420d662541d2a
signaturelock-open Commit is signed but in an unrecognized format.

zig ld: handle -v linker arg

The "-v" argument is the same as "--version", but the linker should not exit after the version is printed.

1 files changed, 2 insertions(+), 0 deletions(-)

src/main.zig+2
......@@ -2475,6 +2475,8 @@ fn buildOutputType(
24752475 fatal("unable to parse /version '{s}': {s}", .{ arg, @errorName(err) });
24762476 };
24772477 have_version = true;
2478 } else if (mem.eql(u8, arg, "-v")) {
2479 try std.io.getStdOut().writeAll("zig ld " ++ build_options.version ++ "\n");
24782480 } else if (mem.eql(u8, arg, "--version")) {
24792481 try std.io.getStdOut().writeAll("zig ld " ++ build_options.version ++ "\n");
24802482 process.exit(0);