From fd7654e4e80f59e18bfaf7ba4872fefcd74feeb5 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 14 Oct 2017 20:12:15 -0400 Subject: build-exe allows direct export of WinMainCRTStartup --- src/analyze.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/analyze.cpp') 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; } } -- cgit v1.2.3