summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-02-28 23:15:37 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-27 06:26:57 +0200
commitcb09e1e88944e1ab9b0d00a95cdc71bdab69ad58 (patch)
tree5e5b4a232813c5f9b838a8e82a9c1c5f0369a0a7 /configure
parentf2a3307cefa7d641d20781f3caebba1cba7cfa51 (diff)
Automatically enable precompiled headers for Qt modules
We'll use the master depends header for the module as the precompilation header. We could use the master include, but tests show that precompilation benefits taper off for big precompiled headers. The important part is to get the Standard Library headers precompiled. Each module can still override which header to precompile by setting PRECOMPILED_HEADER after load(qt_modules). It can also turn off precompiled headers by setting that to empty or by CONFIG -= precompile_header. Testing a few build times shows the following improvements (GCC 4.8 with -O3 and C++11): QtPrintSupport: 14.7% QtOpenGL: 22.7% QtDBus: 29.5% QtSvg: -2.4% QtXmlPatterns: 26.1% QtQml: 21.6% QtQuick: 25.0% QtMultimedia: 9.0% QtSerialPort: -30.0% QtHelp: 5.6% The numbers also show that precompilation is worse for small modules. Change-Id: I3793fafcedaff5456527cd6b3777ffd162975c36 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions