mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 23:02:27 +00:00
Use setStackSize on Windows
This commit is contained in:
parent
6a3f906382
commit
a41f4223de
@ -522,10 +522,13 @@ void mainWrapped(int argc, char * * argv)
|
||||
|
||||
int main(int argc, char * * argv)
|
||||
{
|
||||
#ifndef _WIN32 // TODO implement on Windows
|
||||
#ifndef _WIN32
|
||||
// Increase the default stack size for the evaluator and for
|
||||
// libstdc++'s std::regex.
|
||||
nix::setStackSize(64 * 1024 * 1024);
|
||||
#else
|
||||
// Windows' default stack reservation is 1 MB, going over will fail
|
||||
nix::setStackSize(1 * 1024 * 1024);
|
||||
#endif
|
||||
|
||||
return nix::handleExceptions(argv[0], [&]() {
|
||||
|
Loading…
Reference in New Issue
Block a user