File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7899,13 +7899,13 @@ Buf *codegen_generate_builtin_source(CodeGen *g) {
7899
7899
" EfiRuntimeDriver" ,
7900
7900
};
7901
7901
7902
- if (g->subsystem == TargetSubsystemAuto) {
7902
+ if (g->zig_target ->os != OsWindows || g->zig_target ->os != OsUefi || g->have_dllmain_crt_startup || g->out_type == OutTypeLib) {
7903
+ buf_appendf (contents, " pub const subsystem = null;\n " );
7904
+ } else if (g->subsystem == TargetSubsystemAuto) {
7903
7905
if (g->have_c_main || g->have_pub_main ) {
7904
7906
buf_appendf (contents, " pub const subsystem = SubSystem.%s;\n " , subsystem_strings[TargetSubsystemConsole - 1 ]);
7905
7907
} else if (g->have_winmain || g->have_winmain_crt_startup ) {
7906
7908
buf_appendf (contents, " pub const subsystem = SubSystem.%s;\n " , subsystem_strings[TargetSubsystemWindows - 1 ]);
7907
- } else if (g->have_dllmain_crt_startup || g->out_type == OutTypeLib) {
7908
- buf_appendf (contents, " pub const subsystem = null;\n " );
7909
7909
}
7910
7910
} else {
7911
7911
buf_appendf (contents, " pub const subsystem = SubSystem.%s;\n " , subsystem_strings[g->subsystem - 1 ]);
You can’t perform that action at this time.
0 commit comments