diff options
| author | Aikawa Yataro <aikawayataro@protonmail.com> | 2024-07-23 16:00:18 +0000 |
|---|---|---|
| committer | Aikawa Yataro <aikawayataro@protonmail.com> | 2024-07-23 16:06:52 +0000 |
| commit | 73021c1e0c72534b28c35714e9b1ff32824f5cb8 (patch) | |
| tree | 08e7e0d990c97175a80900a7d05208b2e2df716d /src/main.zig | |
| parent | 3a22ad70354903ccde2e7274c97e5393ef32d274 (diff) | |
| download | zig-73021c1e0c72534b28c35714e9b1ff32824f5cb8.tar.gz zig-73021c1e0c72534b28c35714e9b1ff32824f5cb8.zip | |
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.
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index b3241f8107..b3fc0ad6de 100644 --- a/src/main.zig +++ b/src/main.zig @@ -2475,6 +2475,8 @@ fn buildOutputType( fatal("unable to parse /version '{s}': {s}", .{ arg, @errorName(err) }); }; have_version = true; + } else if (mem.eql(u8, arg, "-V")) { + warn("ignoring request for supported emulations: unimplemented", .{}); } else if (mem.eql(u8, arg, "-v")) { try std.io.getStdOut().writeAll("zig ld " ++ build_options.version ++ "\n"); } else if (mem.eql(u8, arg, "--version")) { |
