Skip to content

Commit 08e218e

Browse files
committed
Reduce the stack size to a bit under 64 MiB
1 parent 2349c3d commit 08e218e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/nix/main.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,9 @@ int main(int argc, char ** argv)
566566
#ifndef _WIN32
567567
// Increase the default stack size for the evaluator and for
568568
// libstdc++'s std::regex.
569-
nix::setStackSize(64 * 1024 * 1024);
569+
// This used to be 64 MiB, but macOS as deployed on GitHub Actions has a
570+
// hard limit slightly under that, so we round it down a bit.
571+
nix::setStackSize(60 * 1024 * 1024);
570572
#endif
571573

572574
return nix::handleExceptions(argv[0], [&]() { nix::mainWrapped(argc, argv); });

0 commit comments

Comments
 (0)