mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00: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
@ -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…
x
Reference in New Issue
Block a user