mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
Reduce the stack size to a bit under 64 MiB
This commit is contained in:
parent
2349c3dbde
commit
08e218eb0b
1 changed files with 3 additions and 1 deletions
|
|
@ -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); });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue