qt5base-lts/config.tests
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
..
arch PowerPC: Add detection of SPE (found on e500) and VSX 2016-06-19 18:46:26 +00:00
common Detect the (stated) C++ standard edition at build time 2017-03-31 21:08:32 +00:00
mac/corewlan rewrite library handling in configure 2016-08-18 17:09:52 +00:00
qpa Direct2D QPA config test: Test for presence of IDXGISurface1 2016-11-04 11:22:29 +00:00
unix Fix MIPS DSP configuration 2017-01-27 15:08:57 +00:00
win determine compiler version at build time, not in configure 2016-12-23 13:44:50 +00:00
x11 remove unused Xlib's XRender dependency 2017-02-24 19:42:21 +00:00
.gitignore Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
.qmake.conf make also configure tests not see %LIB% and %INCLUDE% under mingw 2016-10-17 13:44:43 +00:00