From 10b041c645099e76325293a212b129d0bdfec33e Mon Sep 17 00:00:00 2001
From: ahgamut <41098605+ahgamut@users.noreply.github.com>
Date: Wed, 27 Oct 2021 18:19:27 +0530
Subject: [PATCH] make.com now uses stack size of 2mb
---
third_party/make/lib/xalloc-die.c | 2 +-
third_party/make/src/main.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/third_party/make/lib/xalloc-die.c b/third_party/make/lib/xalloc-die.c
index 4e1909797..d6e0fd1ad 100644
--- a/third_party/make/lib/xalloc-die.c
+++ b/third_party/make/lib/xalloc-die.c
@@ -25,7 +25,7 @@
#include "third_party/make/lib/error.h"
#include "third_party/make/lib/exitfail.h"
-#include "third_party/make/src/gettext.h"
+#include "third_party/make/lib/gettext.h"
#define _(msgid) gettext (msgid)
void
diff --git a/third_party/make/src/main.c b/third_party/make/src/main.c
index d7e9bebec..11c47d569 100644
--- a/third_party/make/src/main.c
+++ b/third_party/make/src/main.c
@@ -26,6 +26,7 @@ this program. If not, see . */
#include "third_party/make/src/getopt.h"
#include "libc/sysv/consts/sa.h"
+#include "libc/runtime/stack.h"
#include "third_party/gdtoa/gdtoa.h"
#include
@@ -1057,6 +1058,7 @@ int
main (int argc, char **argv, char **envp)
#endif
{
+ STATIC_STACK_SIZE(0x00200000); // 2mb stack
static char *stdin_nm = 0;
int makefile_status = MAKE_SUCCESS;
struct goaldep *read_files;