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