diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index 99d008aa3d1..c82355b31b0 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -62,6 +62,7 @@ #include #include #include +#include #include #include @@ -513,6 +514,10 @@ CppModelManager::CppModelManager() d->m_indexingSupporter = nullptr; d->m_enableGC = true; + // Visual C++ has 1MiB, macOSX has 512KiB + if (Utils::HostOsInfo::isWindowsHost() || Utils::HostOsInfo::isMacHost()) + d->m_threadPool.setStackSize(2 * 1024 * 1024); + qRegisterMetaType >(); connect(this, &CppModelManager::sourceFilesRefreshed, this, &CppModelManager::onSourceFilesRefreshed);