Control of Swift Entry Point

What do you mean by the "right thing"? GetModuleHandleW(NULL) always returns the executable's module handle, which is what you would have gotten from WinMain.

Does the target triple encode that? If not, adding a Swift driver flag seems reasonable.

1 Like