| ... | @@ -161,6 +161,9 @@ dll_export_fns: ?bool = null, | ... | @@ -161,6 +161,9 @@ dll_export_fns: ?bool = null, |
| 161 | | 161 | |
| 162 | subsystem: ?std.Target.SubSystem = null, | 162 | subsystem: ?std.Target.SubSystem = null, |
| 163 | | 163 | |
| | 164 | /// (Windows) When targeting the MinGW ABI, use the unicode entry point (wmain/wWinMain) |
| | 165 | mingw_unicode_entry_point: bool = false, |
| | 166 | |
| 164 | /// How the linker must handle the entry point of the executable. | 167 | /// How the linker must handle the entry point of the executable. |
| 165 | entry: Entry = .default, | 168 | entry: Entry = .default, |
| 166 | | 169 | |
| ... | @@ -1583,6 +1586,10 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void { | ... | @@ -1583,6 +1586,10 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void { |
| 1583 | }); | 1586 | }); |
| 1584 | } | 1587 | } |
| 1585 | | 1588 | |
| | 1589 | if (self.mingw_unicode_entry_point) { |
| | 1590 | try zig_args.append("-municode"); |
| | 1591 | } |
| | 1592 | |
| 1586 | if (self.error_limit) |err_limit| try zig_args.appendSlice(&.{ | 1593 | if (self.error_limit) |err_limit| try zig_args.appendSlice(&.{ |
| 1587 | "--error-limit", | 1594 | "--error-limit", |
| 1588 | b.fmt("{}", .{err_limit}), | 1595 | b.fmt("{}", .{err_limit}), |