| author | |
| committer | |
| log | 1a414c7b6be312e59a419aa2346a602fa962c94a |
| tree | ea23991bb6bfbb6986c8086cad3973fbb2a89941 |
| parent | 4c306af4eb79071c966b99e877970f0a4582d891 |
The solution to this is to always have it on and only
use the 'W' versions of respective windows APIs.
See the issue for this.4 files changed, 0 insertions(+), 11 deletions(-)
src/all_types.hpp-1| ... | ... | @@ -1491,7 +1491,6 @@ struct CodeGen { |
| 1491 | 1491 | Buf *root_out_name; |
| 1492 | 1492 | bool windows_subsystem_windows; |
| 1493 | 1493 | bool windows_subsystem_console; |
| 1494 | bool windows_linker_unicode; | |
| 1495 | 1494 | Buf *mmacosx_version_min; |
| 1496 | 1495 | Buf *mios_version_min; |
| 1497 | 1496 | bool linker_rdynamic; |
src/codegen.cpp-4| ... | ... | @@ -261,10 +261,6 @@ void codegen_set_windows_subsystem(CodeGen *g, bool mwindows, bool mconsole) { |
| 261 | 261 | g->windows_subsystem_console = mconsole; |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | void codegen_set_windows_unicode(CodeGen *g, bool municode) { | |
| 265 | g->windows_linker_unicode = municode; | |
| 266 | } | |
| 267 | ||
| 268 | 264 | void codegen_set_mmacosx_version_min(CodeGen *g, Buf *mmacosx_version_min) { |
| 269 | 265 | g->mmacosx_version_min = mmacosx_version_min; |
| 270 | 266 | } |
src/codegen.hpp-1| ... | ... | @@ -34,7 +34,6 @@ void codegen_set_msvc_lib_dir(CodeGen *codegen, Buf *msvc_lib_dir); |
| 34 | 34 | void codegen_set_kernel32_lib_dir(CodeGen *codegen, Buf *kernel32_lib_dir); |
| 35 | 35 | void codegen_set_dynamic_linker(CodeGen *g, Buf *dynamic_linker); |
| 36 | 36 | void codegen_set_windows_subsystem(CodeGen *g, bool mwindows, bool mconsole); |
| 37 | void codegen_set_windows_unicode(CodeGen *g, bool municode); | |
| 38 | 37 | void codegen_add_lib_dir(CodeGen *codegen, const char *dir); |
| 39 | 38 | LinkLib *codegen_add_link_lib(CodeGen *codegen, Buf *lib); |
| 40 | 39 | void codegen_add_framework(CodeGen *codegen, const char *name); |
src/main.cpp-5| ... | ... | @@ -73,7 +73,6 @@ static int usage(const char *arg0) { |
| 73 | 73 | " -rpath $path add directory to the runtime library search path\n" |
| 74 | 74 | " -mconsole (windows) --subsystem console to the linker\n" |
| 75 | 75 | " -mwindows (windows) --subsystem windows to the linker\n" |
| 76 | " -municode (windows) link with unicode\n" | |
| 77 | 76 | " -framework $name (darwin) link against framework\n" |
| 78 | 77 | " -mios-version-min $ver (darwin) set iOS deployment target\n" |
| 79 | 78 | " -mmacosx-version-min $ver (darwin) set Mac OS X deployment target\n" |
| ... | ... | @@ -302,7 +301,6 @@ int main(int argc, char **argv) { |
| 302 | 301 | const char *target_environ = nullptr; |
| 303 | 302 | bool mwindows = false; |
| 304 | 303 | bool mconsole = false; |
| 305 | bool municode = false; | |
| 306 | 304 | bool rdynamic = false; |
| 307 | 305 | const char *mmacosx_version_min = nullptr; |
| 308 | 306 | const char *mios_version_min = nullptr; |
| ... | ... | @@ -487,8 +485,6 @@ int main(int argc, char **argv) { |
| 487 | 485 | mwindows = true; |
| 488 | 486 | } else if (strcmp(arg, "-mconsole") == 0) { |
| 489 | 487 | mconsole = true; |
| 490 | } else if (strcmp(arg, "-municode") == 0) { | |
| 491 | municode = true; | |
| 492 | 488 | } else if (strcmp(arg, "-rdynamic") == 0) { |
| 493 | 489 | rdynamic = true; |
| 494 | 490 | } else if (strcmp(arg, "--each-lib-rpath") == 0) { |
| ... | ... | @@ -790,7 +786,6 @@ int main(int argc, char **argv) { |
| 790 | 786 | } |
| 791 | 787 | |
| 792 | 788 | codegen_set_windows_subsystem(g, mwindows, mconsole); |
| 793 | codegen_set_windows_unicode(g, municode); | |
| 794 | 789 | codegen_set_rdynamic(g, rdynamic); |
| 795 | 790 | if (mmacosx_version_min && mios_version_min) { |
| 796 | 791 | fprintf(stderr, "-mmacosx-version-min and -mios-version-min options not allowed together\n"); |