diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2012-05-29 07:10:09 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-05 12:30:13 +0200 |
commit | bf84d1a1fe1550fb7cb86d686bf0138c1c41e87b (patch) | |
tree | 83ca6ac60c54ae23592ac1dc96efa39e94f945ba /dist/changes-5.0.0 | |
parent | a6d6719c26a6d8e43250d05e2b587dbcc3e59366 (diff) |
configure: Auto-detect and enable C++11 support if available
Enabling support for C++11 adds CONFIG+=c++11 to the Qt build. Projects
using Qt can check for C++11 support using contains(QT_CONFIG, c++11) in
their .pr[iof] files.
The QMAKE_CXXFLAGS_CXX11 and QMAKE_LFLAGS_CXX11 qmake varibles contain
any arguments the compiler needs to enable C++11. CONFIG+=c++11 adds
these arguments to the build.
Support for clang, g++, and the Intel C++ Compiler for Linux are
included in this commit.
Change-Id: Id77f86d7ad4d5c740b890446a40b105879a0d327
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'dist/changes-5.0.0')
-rw-r--r-- | dist/changes-5.0.0 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0 index 7b13952826..1775a4c556 100644 --- a/dist/changes-5.0.0 +++ b/dist/changes-5.0.0 @@ -287,6 +287,12 @@ General Improvements more closely match the directory structure of the code under test. Integration tests have been moved to tests/auto/integrationtests. +- Qt is compiled with C++11 support enabled by default, provided the compiler + supports C++11. Qmake based projects can enable C++11 support explicitly + using 'CONFIG+=c++11' in their .pro files. To enable it conditionally, use + 'contains(QT_CONFIG,c++11):CONFIG+=c++11'. This will enable C++11 support + only if Qt was built with C++11 support. + Third party components ---------------------- |