Closed jimying closed 7 months ago
/SUBSYSTEM:Windows
/SUBSYSTEM:Console
for zig build, set subsystem in build.zig
if (optimize != .Debug) exe.subsystem = .Windows;
@jinzhongjia
@jinzhongjia
I did not set this in the example because it is convenient for debugging. If set this, it will not be able to directly see the output of the console.
Probably default should be release, while for debugging, users can add debug
argument in CLI. Just a suggestion.
Probably default should be release, while for debugging, users can add
debug
argument in CLI. Just a suggestion.
This build option is part of build.zig
, it is decided by the user, it should not be provided by the package, and as an imported package, it is theoretically impossible to modify the settings of the package that imports it.
This is inconsistent with zig's non-implicit philosophy
But we can put it in the zig-webui readme as tips.
as title
I know it's very helpful show console/cmd for debug, but i want to hide it when release.