Commit d4d22df1d9

Andrew Kelley <superjoe30@gmail.com>
2018-10-01 20:10:18
increase stack size on windows for all executables
fixes test failures See #157
1 parent af229c1
Changed files (1)
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) {