diff options
author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2016-11-02 11:17:37 +0100 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2016-11-02 11:09:10 +0000 |
commit | d93963296a91969321d20e3526b14fc05e83dd90 (patch) | |
tree | 89290da174a307dcdff524b158b636caf964e062 /src/app/main.cpp | |
parent | 77db31db3b0e919dde812e187bbf1d2d69c73df9 (diff) | |
download | qt-creator-d93963296a91969321d20e3526b14fc05e83dd90.tar.gz |
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>
Diffstat (limited to 'src/app/main.cpp')
-rw-r--r-- | src/app/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp index 5600be6e97..85fe4e5e89 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -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; |