mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 11:22:22 -07:00
Fix SUBSYSTEM for link.exe
This commit is contained in:
@@ -5343,7 +5343,7 @@ void ir_gen_tree(irGen *s) {
|
||||
ir_end_procedure_body(proc);
|
||||
}
|
||||
#endif
|
||||
#if defined(GB_SYSTEM_WINDOWS)
|
||||
#if 0 && defined(GB_SYSTEM_WINDOWS)
|
||||
if (!m->build_context->is_dll && !has_win_main) {
|
||||
// WinMain :: proc(inst, prev: rawptr, cmd_line: ^byte, cmd_show: i32) -> i32
|
||||
String name = str_lit("WinMain");
|
||||
|
||||
@@ -565,6 +565,7 @@ bool ir_print_is_proc_global(irModule *m, irProcedure *proc) {
|
||||
if (proc->entity != NULL &&
|
||||
proc->entity->kind == Entity_Procedure) {
|
||||
if (m->entry_point_entity == proc->entity) {
|
||||
// gb_printf("%.*s\n", LIT(proc->entity->token.string));
|
||||
// TODO(bill): This may not be needed during windows
|
||||
return true;
|
||||
}
|
||||
|
||||
+1
-1
@@ -254,7 +254,7 @@ int main(int argc, char **argv) {
|
||||
exit_code = win32_exec_command_line_app("msvc-link", true,
|
||||
"link %.*s.obj -OUT:%.*s.%s %s "
|
||||
"/defaultlib:libcmt "
|
||||
"/nologo /incremental:no /opt:ref /subsystem:WINDOWS "
|
||||
"/nologo /incremental:no /opt:ref /subsystem:CONSOLE "
|
||||
" %.*s "
|
||||
" %s "
|
||||
"",
|
||||
|
||||
Reference in New Issue
Block a user