| ... | ... | @@ -9,9 +9,9 @@ pub fn build(b: *Builder) void { |
| 9 | 9 | const mode = b.standardReleaseOptions(); |
| 10 | 10 | |
| 11 | 11 | 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)}); |
| 13 | 13 | 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 "" }); |
| 15 | 15 | |
| 16 | 16 | const exe = b.addExecutable(exe_name, "src/main.zig"); |
| 17 | 17 | exe.setTarget(target); |