mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
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.
This commit is contained in:
parent
3a22ad7035
commit
73021c1e0c
1 changed files with 2 additions and 0 deletions
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue