aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-10-14 20:12:15 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-10-14 20:12:15 -0400
commitfd7654e4e80f59e18bfaf7ba4872fefcd74feeb5 (patch)
treea7f7582bc03d4f0a562dfef581613412641474a3 /src/analyze.cpp
parentf54aff46721b04fe43b645f27d3c4dbb8d2cc74d (diff)
downloadzig-fd7654e4e80f59e18bfaf7ba4872fefcd74feeb5.tar.gz
zig-fd7654e4e80f59e18bfaf7ba4872fefcd74feeb5.zip
build-exe allows direct export of WinMainCRTStartup
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 1a39140e66..5e702964d3 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -3196,6 +3196,10 @@ ImportTableEntry *add_source_file(CodeGen *g, PackageTableEntry *package, Buf *a
g->have_winmain = true;
g->windows_subsystem_windows = true;
g->windows_subsystem_console = false;
+ } else if (proto_node->data.fn_proto.visib_mod == VisibModExport &&
+ buf_eql_str(proto_name, "WinMainCRTStartup") && g->zig_target.os == ZigLLVM_Win32)
+ {
+ g->have_winmain_crt_startup = true;
}
}