From d08c57741ae190c587c42861e71b0e361903733e Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 16 Oct 2017 01:14:28 -0400 Subject: ability to make a DLL See #302 --- 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 5e702964d3..3bb4fe6511 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -3200,6 +3200,10 @@ ImportTableEntry *add_source_file(CodeGen *g, PackageTableEntry *package, Buf *a buf_eql_str(proto_name, "WinMainCRTStartup") && g->zig_target.os == ZigLLVM_Win32) { g->have_winmain_crt_startup = true; + } else if (proto_node->data.fn_proto.visib_mod == VisibModExport && + buf_eql_str(proto_name, "DllMainCRTStartup") && g->zig_target.os == ZigLLVM_Win32) + { + g->have_dllmain_crt_startup = true; } } -- cgit v1.2.3