feat(win32 gui): produce both tui and gui executables for windows targets
This commit is contained in:
parent
0fa1e63af9
commit
f0586325bb
1 changed files with 20 additions and 2 deletions
22
build.zig
22
build.zig
|
@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue