authorgravatar for aikawayataro@protonmail.comAikawa Yataro <aikawayataro@protonmail.com> 2024-07-23 16:00:18+00:00
committergravatar for aikawayataro@protonmail.comAikawa Yataro <aikawayataro@protonmail.com> 2024-07-23 16:06:52+00:00
log73021c1e0c72534b28c35714e9b1ff32824f5cb8
tree08e7e0d990c97175a80900a7d05208b2e2df716d
parent3a22ad70354903ccde2e7274c97e5393ef32d274
signaturelock-open Commit is signed but in an unrecognized format.

zig ld: handle -V linker arg

The "-V' argument lists the supported emulations. While linker emulation is not implemented, it's beneficial to warn user regarding this.

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

src/main.zig+2
...@@ -2475,6 +2475,8 @@ fn buildOutputType(...@@ -2475,6 +2475,8 @@ fn buildOutputType(
2475 fatal("unable to parse /version '{s}': {s}", .{ arg, @errorName(err) });2475 fatal("unable to parse /version '{s}': {s}", .{ arg, @errorName(err) });
2476 };2476 };
2477 have_version = true;2477 have_version = true;
2478 } else if (mem.eql(u8, arg, "-V")) {
2479 warn("ignoring request for supported emulations: unimplemented", .{});
2478 } else if (mem.eql(u8, arg, "-v")) {2480 } else if (mem.eql(u8, arg, "-v")) {
2479 try std.io.getStdOut().writeAll("zig ld " ++ build_options.version ++ "\n");2481 try std.io.getStdOut().writeAll("zig ld " ++ build_options.version ++ "\n");
2480 } else if (mem.eql(u8, arg, "--version")) {2482 } else if (mem.eql(u8, arg, "--version")) {