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/codegen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/codegen.cpp') diff --git a/src/codegen.cpp b/src/codegen.cpp index 03fa976b2e..985e390758 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -5213,7 +5213,8 @@ static void gen_root_source(CodeGen *g) { assert(g->root_out_name); assert(g->out_type != OutTypeUnknown); - if (!g->is_test_build && g->zig_target.os != ZigLLVM_UnknownOS && !g->have_c_main && !g->have_winmain && + if (!g->is_test_build && g->zig_target.os != ZigLLVM_UnknownOS && + !g->have_c_main && !g->have_winmain && !g->have_winmain_crt_startup && ((g->have_pub_main && g->out_type == OutTypeObj) || g->out_type == OutTypeExe)) { g->bootstrap_import = add_special_code(g, create_bootstrap_pkg(g, g->root_package), "bootstrap.zig"); -- cgit v1.2.3