From bf84d1a1fe1550fb7cb86d686bf0138c1c41e87b Mon Sep 17 00:00:00 2001 From: "Bradley T. Hughes" Date: Tue, 29 May 2012 07:10:09 +0200 Subject: 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 Reviewed-by: Oswald Buddenhagen --- dist/changes-5.0.0 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dist/changes-5.0.0') 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 ---------------------- -- cgit v1.2.3