[kde-freebsd] [SVN Commit] area51/QT

Raphael Kubo da Costa rakuco at FreeBSD.org
Thu Jul 24 08:45:08 UTC 2014


SVN commit 10198 by rakuco:

QT: Merge r362770 from ports.

------------------------------------------------------------------------
r362770 | rakuco | 2014-07-24 11:37:55 +0300 (Thu, 24 Jul 2014) | 19 lines

Backport my patch to make Qt correctly detect clang's support for C++11 features.

So far, Qt4 was basing its check for compiler support for C++11 features
(auto types, lambdas, rvalue references and others) on the values of
__GNUC__ and __GNUC_MINOR__. This works for GCC, but not for clang, whose
__GNUC_MINOR__ is stuck at 2. In practice, this meant Qt programs built
using clang were never able to use C++11 features which are conditionally
available in classes such as QList. This patch makes the detection more in
line with what Qt5 does (checks for GCC and clang are in separate sections
and are done differently).

I couldn't find cases of this negatively affecting any port so far, but it
is useful to have -- Akonadi's unit tests require C++11 support in Qt, for
example.

Only qt4-corelibs's PORTREVISION was bumped to make the new qglobal.h be
installed. Checks for these C++11 features are only present in headers of
other Qt4 ports, so there's no need to rebuild them.

------------------------------------------------------------------------



 M  +2 -0      Mk/bsd.qt.mk  
 AM            devel/qt4/files/extrapatch-src-corelib-global-qglobal.h  




More information about the kde-freebsd mailing list