aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-09-24 03:54:59 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-09-24 03:55:45 -0400
commitba41be67f02158df964543d21b30c83f1b17550d (patch)
tree79532b92c9309e669fc7c96420e1efe9b7dd1f44 /src/analyze.cpp
parent41b588547cd49673ff632ed0fc3210c76ff48b42 (diff)
downloadzig-ba41be67f02158df964543d21b30c83f1b17550d.tar.gz
zig-ba41be67f02158df964543d21b30c83f1b17550d.zip
windows gui hello world
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index b20b7b3bd7..fbe96fb91f 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -3200,6 +3200,12 @@ ImportTableEntry *add_source_file(CodeGen *g, PackageTableEntry *package, Buf *a
g->have_c_main = true;
g->windows_subsystem_windows = false;
g->windows_subsystem_console = true;
+ } else if (proto_node->data.fn_proto.visib_mod == VisibModExport && buf_eql_str(proto_name, "WinMain") &&
+ g->zig_target.os == ZigLLVM_Win32)
+ {
+ g->have_winmain = true;
+ g->windows_subsystem_windows = true;
+ g->windows_subsystem_console = false;
}
}