aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-10-27 01:29:58 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-10-27 01:29:58 -0400
commit1a414c7b6be312e59a419aa2346a602fa962c94a (patch)
treeea23991bb6bfbb6986c8086cad3973fbb2a89941 /src/main.cpp
parent4c306af4eb79071c966b99e877970f0a4582d891 (diff)
downloadzig-1a414c7b6be312e59a419aa2346a602fa962c94a.tar.gz
zig-1a414c7b6be312e59a419aa2346a602fa962c94a.zip
delete -municode command line argument
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.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index bee021c6a5..358f1cf255 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -73,7 +73,6 @@ static int usage(const char *arg0) {
" -rpath $path add directory to the runtime library search path\n"
" -mconsole (windows) --subsystem console to the linker\n"
" -mwindows (windows) --subsystem windows to the linker\n"
- " -municode (windows) link with unicode\n"
" -framework $name (darwin) link against framework\n"
" -mios-version-min $ver (darwin) set iOS deployment target\n"
" -mmacosx-version-min $ver (darwin) set Mac OS X deployment target\n"
@@ -302,7 +301,6 @@ int main(int argc, char **argv) {
const char *target_environ = nullptr;
bool mwindows = false;
bool mconsole = false;
- bool municode = false;
bool rdynamic = false;
const char *mmacosx_version_min = nullptr;
const char *mios_version_min = nullptr;
@@ -487,8 +485,6 @@ int main(int argc, char **argv) {
mwindows = true;
} else if (strcmp(arg, "-mconsole") == 0) {
mconsole = true;
- } else if (strcmp(arg, "-municode") == 0) {
- municode = true;
} else if (strcmp(arg, "-rdynamic") == 0) {
rdynamic = true;
} else if (strcmp(arg, "--each-lib-rpath") == 0) {
@@ -790,7 +786,6 @@ int main(int argc, char **argv) {
}
codegen_set_windows_subsystem(g, mwindows, mconsole);
- codegen_set_windows_unicode(g, municode);
codegen_set_rdynamic(g, rdynamic);
if (mmacosx_version_min && mios_version_min) {
fprintf(stderr, "-mmacosx-version-min and -mios-version-min options not allowed together\n");