build-exe allows direct export of WinMainCRTStartup

This commit is contained in:
Andrew Kelley
2017-10-14 20:12:15 -04:00
parent f54aff4672
commit fd7654e4e8
3 changed files with 7 additions and 1 deletions

View File

@@ -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;
}
}