Skip to content

Commit

Permalink
windows - subsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Jun 29, 2023
1 parent 59ea84f commit 7f11c32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ fn buildTest(b: *std.Build, info: BuildInfo) void {
"-Wall",
"-Wextra",
});
if (info.lib.target.getAbi() == .msvc) {
if (test_exe.target.isWindows())
test_exe.subsystem = .Console;
if (test_exe.target.getAbi() == .msvc) {
xWin(b, test_exe);
test_exe.linkLibC();
} else test_exe.linkLibCpp();
Expand Down

0 comments on commit 7f11c32

Please sign in to comment.