feat(win32 gui): produce both tui and gui executables for windows targets

This commit is contained in:
CJ van den Berg 2025-01-05 15:32:54 +01:00
parent 0fa1e63af9
commit f0586325bb
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -75,7 +75,7 @@ fn build_release(
strip: ?bool, strip: ?bool,
use_llvm: ?bool, use_llvm: ?bool,
pie: ?bool, pie: ?bool,
gui: bool, _: bool, //gui
) void { ) void {
const targets: []const std.Target.Query = &.{ const targets: []const std.Target.Query = &.{
.{ .cpu_arch = .x86_64, .os_tag = .linux, .abi = .musl }, .{ .cpu_arch = .x86_64, .os_tag = .linux, .abi = .musl },
@ -117,7 +117,25 @@ fn build_release(
strip orelse true, strip orelse true,
use_llvm, use_llvm,
pie, pie,
gui, false, //gui
);
if (t.os_tag == .windows)
build_exe(
b,
run_step,
check_step,
test_step,
lint_step,
target,
optimize,
.{ .dest_dir = .{ .override = .{ .custom = target_path } } },
tracy_enabled,
use_tree_sitter,
strip orelse true,
use_llvm,
pie,
true, //gui
); );
} }
} }