-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mingw: support -municode #19399
mingw: support -municode #19399
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 was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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