aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/link.cpp')
-rw-r--r--src/link.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/link.cpp b/src/link.cpp
index a280c31f74..2b58f14266 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -434,6 +434,11 @@ static void construct_linker_job_coff(LinkJob *lj) {
lj->args.append("-DEBUG");
}
+ if (g->out_type == OutTypeExe) {
+ // TODO compile time stack upper bound detection
+ lj->args.append("/STACK:16777216");
+ }
+
coff_append_machine_arg(g, &lj->args);
if (g->windows_subsystem_windows) {