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/codegen.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/codegen.cpp') diff --git a/src/codegen.cpp b/src/codegen.cpp index e119b714a8..2ffb2c49c2 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -5228,6 +5228,9 @@ static void gen_root_source(CodeGen *g) { { g->bootstrap_import = add_special_code(g, create_bootstrap_pkg(g, g->root_package), "bootstrap.zig"); } + if (g->zig_target.os == ZigLLVM_Win32 && !g->have_dllmain_crt_startup && g->out_type == OutTypeLib) { + g->bootstrap_import = add_special_code(g, create_bootstrap_pkg(g, g->root_package), "bootstrap_lib.zig"); + } ImportTableEntry *import_with_panic; if (g->have_pub_panic) { import_with_panic = g->root_import; -- cgit v1.2.3