Commit ca360a2
committed
cmake: Use correct link option for gcc ld in MinGW.
While MSVC needs to specify entry as `wWinMainCRTStartup`, MinGW
needs `-municode`. MinGW used to not support `wWinMain`, but recently it
finally adds support for that.
The support for clang is more complicated. This code was tested on MinGW
clang, provided by MSYS2 clang64, and it worked successfully. Further
investigation may be needed.
Signed-off-by: Yuyi Wang <Strawberry_Str@hotmail.com>1 parent 05d80ad commit ca360a2
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
729 | | - | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
730 | 736 | | |
731 | 737 | | |
732 | 738 | | |
| |||
0 commit comments