| ... | @@ -434,6 +434,11 @@ static void construct_linker_job_coff(LinkJob *lj) { | ... | @@ -434,6 +434,11 @@ static void construct_linker_job_coff(LinkJob *lj) { |
| 434 | lj->args.append("-DEBUG"); | 434 | lj->args.append("-DEBUG"); |
| 435 | } | 435 | } |
| 436 | | 436 | |
| | 437 | if (g->out_type == OutTypeExe) { |
| | 438 | // TODO compile time stack upper bound detection |
| | 439 | lj->args.append("/STACK:16777216"); |
| | 440 | } |
| | 441 | |
| 437 | coff_append_machine_arg(g, &lj->args); | 442 | coff_append_machine_arg(g, &lj->args); |
| 438 | | 443 | |
| 439 | if (g->windows_subsystem_windows) { | 444 | if (g->windows_subsystem_windows) { |