Fix compile on macOS

...by not passing in IDE_LIBEXEC_PATH.

While at it, fix the call to CrashHandlerSetup.

Change-Id: Ie4018bf58f286c121bb85951546c4fe4d31e9959
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Nikolai Kosjar
2016-11-02 11:17:37 +01:00
parent 77db31db3b
commit d93963296a
3 changed files with 3 additions and 5 deletions

View File

@@ -327,8 +327,9 @@ int main(int argc, char **argv)
const int threadCount = QThreadPool::globalInstance()->maxThreadCount();
QThreadPool::globalInstance()->setMaxThreadCount(qMax(4, 2 * threadCount));
// Display a backtrace once a serious signal is delivered.
CrashHandlerSetup setupCrashHandler(IDE_LIBEXEC_PATH);
// Display a backtrace once a serious signal is delivered (Linux only).
const QString libexecPath = QCoreApplication::applicationDirPath() + "/../libexec/qtcreator";
CrashHandlerSetup setupCrashHandler(appNameC, CrashHandlerSetup::EnableRestart, libexecPath);
#ifdef ENABLE_QT_BREAKPAD
QtSystemExceptionHandler systemExceptionHandler;