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 /mkspecs/features/qt_module_config.prf | |
parent | a6d6719c26a6d8e43250d05e2b587dbcc3e59366 (diff) | |
download | qtbase-bf84d1a1fe1550fb7cb86d686bf0138c1c41e87b.tar.gz |
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 'mkspecs/features/qt_module_config.prf')
-rw-r--r-- | mkspecs/features/qt_module_config.prf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mkspecs/features/qt_module_config.prf b/mkspecs/features/qt_module_config.prf index 217572e143..b6b0c2ca37 100644 --- a/mkspecs/features/qt_module_config.prf +++ b/mkspecs/features/qt_module_config.prf @@ -50,6 +50,7 @@ contains(QT_CONFIG, largefile):CONFIG += largefile contains(QT_CONFIG, build_all):CONFIG += build_all contains(QT_CONFIG, separate_debug_info):CONFIG += separate_debug_info contains(QT_CONFIG, separate_debug_info_nocopy):CONFIG += separate_debug_info_nocopy +contains(QT_CONFIG, c++11):CONFIG += c++11 #mac frameworks mac:!static:contains(QT_CONFIG, qt_framework) { |