1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 12:06:01 +01:00

Reduce the stack size to a bit under 64 MiB

This commit is contained in:
Robert Hensing 2025-11-04 22:51:33 +01:00
parent 2349c3dbde
commit 08e218eb0b

View file

@ -566,7 +566,9 @@ int main(int argc, char ** argv)
#ifndef _WIN32
// Increase the default stack size for the evaluator and for
// libstdc++'s std::regex.
nix::setStackSize(64 * 1024 * 1024);
// This used to be 64 MiB, but macOS as deployed on GitHub Actions has a
// hard limit slightly under that, so we round it down a bit.
nix::setStackSize(60 * 1024 * 1024);
#endif
return nix::handleExceptions(argv[0], [&]() { nix::mainWrapped(argc, argv); });