Conversation
|
Nice work, thanks for getting this fixed! Tested and confirmed this fixes the minimal reproduction in #18621 (comment).
#include <windows.h>
int APIENTRY wWinMain(HINSTANCE hInst, HINSTANCE hInstPrev, PWSTR cmdline, int cmdshow) {
return 0;
}But is there an intended way to provide doesn't seem to work |
|
fixed |
|
Great! One last thing to make this maximally usable is integration with For future reference, after this PR, here's how to build a C file with all possible entry points using (can add See the added standalone test for the |
There are two parts to that issue (and this PR):
@ypsvlq can better clarify which parts of this PR address one or the other. One thing I'd be interested in is if it's at all feasible to make MinGW recognize > zig build-exe wwinmain.c -target x86_64-windows-msvc -lc
> dumpbin /headers /nologo wwinmain.exe
A9AB0 entry point (00000000004A9AB0) wWinMainCRTStartup
2 subsystem (Windows GUI)(both the entry point and the subsystem are inferred) > zig build-exe wwinmain.c -target x86_64-windows-gnu -lc -municode --subsystem windows
> dumpbin /headers /nologo wwinmain.exe
11A0 entry point (00000000004011A0) WinMainCRTStartup
2 subsystem (Windows GUI)(without |
The version of mingw used in 0.11 includes the WinMain startup code in |
Corresponds to the `-municode` CLI flag
fixes #18621, fixes #9924
also rename mingwex to mingw32, which feels more appropriate as it contains the basic C runtime code