authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-15 02:25:38 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-15 02:25:38 -08:00
logbd15d62df9eb6df8478ae5ecf6435e45038c1f85
tree38f4efb7ef0871c68ec7a2419d0accb2d6f37c3d
parent3d01c20f3e759d4c7fb02af6aea88f59e736e7c8

build.zig: make binary name match -target order


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

build.zig+2-2
......@@ -9,9 +9,9 @@ pub fn build(b: *Builder) void {
99 const mode = b.standardReleaseOptions();
1010
1111 const use_full_name = b.option(bool, "use-full-name", "") orelse false;
12 const with_os_arch = b.fmt("-{}-{}", .{@tagName(target.os_tag orelse builtin.os.tag), @tagName(target.cpu_arch orelse builtin.arch)});
12 const with_arch_os = b.fmt("-{}-{}", .{@tagName(target.cpu_arch orelse builtin.arch), @tagName(target.os_tag orelse builtin.os.tag)});
1313 const version_tag = if (b.option([]const u8, "tag", "")) |vt| b.fmt("-{}", .{vt}) else "";
14 const exe_name = b.fmt("{}{}{}", .{ "zigmod", version_tag, if (use_full_name) with_os_arch else "" });
14 const exe_name = b.fmt("{}{}{}", .{ "zigmod", version_tag, if (use_full_name) with_arch_os else "" });
1515
1616 const exe = b.addExecutable(exe_name, "src/main.zig");
1717 exe.setTarget(target);