make/make-4.3-j8k.patch
DJ Delorie 715e733cee Update to 4.4
Patches rebased to apply cleanly.
2023-01-16 16:45:00 -05:00

26 lines
689 B
Diff

diff -rup a/src/main.c b/src/main.c
--- a/src/main.c 2022-10-24 02:22:00.000000000 -0400
+++ b/src/main.c 2022-11-01 17:31:41.072952404 -0400
@@ -2195,6 +2195,21 @@ main (int argc, char **argv, char **envp
}
#endif
+#ifdef PIPE_BUF
+ if (job_slots > PIPE_BUF)
+#elif defined _POSIX_PIPE_BUF
+ if (job_slots > _POSIX_PIPE_BUF)
+#else
+ if (job_slots > 512)
+#endif
+ {
+ O (error, NILF,
+ _("More parallel jobs (-jN) than this platform can handle requested."));
+ O (error, NILF, _("Resetting to single job (-j1) mode."));
+ job_slots = 1;
+ }
+
+
/* If we have >1 slot at this point, then we're a top-level make.
Set up the jobserver.