qt6-bb10/mkspecs/features/data
Thiago Macieira a03390a8b0 Detect the (stated) C++ standard edition at build time
The configure-time detection (cxx11default) isn't enough if the compiler
can be changed. This is especially necessary if Qt is compiled with a
compiler that defaults to >= C++11 (e.g., GCC 6) and then the user
selects a compiler another compiler (e.g., Clang) via -spec option. In
that case, we'd miss adding the -std=c++11 or -std=gnu++11 option to the
command-line, causing the compilation to fail.

As a nice side-effect, even moc without moc_predefs.h will now get the
__cplusplus setting.

Task-number: QTBUG-58321
Change-Id: I74966ed02f674a7295f8fffd14a8be35da9640e1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2017-03-31 21:08:32 +00:00
..
android Android Windows: Adjust to new SDK layout 2013-07-04 21:39:24 +02:00
cmake Remove CMake warning 2015-12-28 22:37:22 +00:00
mac Add tool to namespace Objective-C classes at link time 2016-01-29 14:41:21 +00:00
unix findclasslist.pl: namespaces can be exported too 2016-10-13 08:29:02 +00:00
configure.json add configure -list-libraries 2017-02-22 07:46:11 +00:00
dummy.cpp Implement a more direct headersclean check 2015-04-17 00:54:45 +00:00
macros.cpp Detect the (stated) C++ standard edition at build time 2017-03-31 21:08:32 +00:00