mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
Build.Step.Compile: Add mingw_unicode_entry_point
field
Corresponds to the `-municode` CLI flag
This commit is contained in:
parent
add74427b9
commit
4e428415e5
@ -161,6 +161,9 @@ dll_export_fns: ?bool = null,
|
||||
|
||||
subsystem: ?std.Target.SubSystem = null,
|
||||
|
||||
/// (Windows) When targeting the MinGW ABI, use the unicode entry point (wmain/wWinMain)
|
||||
mingw_unicode_entry_point: bool = false,
|
||||
|
||||
/// How the linker must handle the entry point of the executable.
|
||||
entry: Entry = .default,
|
||||
|
||||
@ -1583,6 +1586,10 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
|
||||
});
|
||||
}
|
||||
|
||||
if (self.mingw_unicode_entry_point) {
|
||||
try zig_args.append("-municode");
|
||||
}
|
||||
|
||||
if (self.error_limit) |err_limit| try zig_args.appendSlice(&.{
|
||||
"--error-limit",
|
||||
b.fmt("{}", .{err_limit}),
|
||||
|
Loading…
Reference in New Issue
Block a user