ability to make a DLL

See #302
This commit is contained in:
Andrew Kelley
2017-10-16 01:14:28 -04:00
parent 78b753af9d
commit d08c57741a
7 changed files with 62 additions and 15 deletions

View File

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