forked from qt-creator/qt-creator
Fix compilation: don't call functions you didn't compile
These functions are only present on debug builds, on Linux. So don't call them unless this is a debug build, on Linux. Change-Id: I180c4a15fbfec15c585e4a8819a43065dba1e90c Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -229,7 +229,9 @@ int main(int argc, char **argv)
|
||||
const int threadCount = QThreadPool::globalInstance()->maxThreadCount();
|
||||
QThreadPool::globalInstance()->setMaxThreadCount(qMax(4, 2 * threadCount));
|
||||
|
||||
#if defined(Q_OS_LINUX) && !defined(QT_NO_DEBUG)
|
||||
setupCrashHandler(); // Display a backtrace once a serious signal is delivered.
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_QT_BREAKPAD
|
||||
QtSystemExceptionHandler systemExceptionHandler;
|
||||
@@ -436,6 +438,8 @@ int main(int argc, char **argv)
|
||||
#endif
|
||||
|
||||
const int r = app.exec();
|
||||
#if defined(Q_OS_LINUX) && !defined(QT_NO_DEBUG)
|
||||
cleanupCrashHandler();
|
||||
#endif
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user