Improve the build speed by 2-3X by using PCH (#4746)

* Improve the build speed by 2-3X by using PCH. This avoids rebuilding large parts of QT and C++ std headers over and over.
* Unfortunately QMake is too opinionated for this to work on macOS so it is used on Windows and Linux only.
* Remove qwindowsvistastyle.dll opengl32sw.dll from QT6 as they're not needed.
* Revert fa84a37 since we don't need it anymore.
This commit is contained in:
Magnus Gille
2025-12-10 10:38:29 -08:00
committed by GitHub
parent 06ed87db09
commit bf20980dd1
9 changed files with 119 additions and 14 deletions

View File

@@ -14,6 +14,9 @@ include( $${QWT_ROOT}/qwtconfig.pri )
include( $${QWT_ROOT}/qwtbuild.pri )
include( $${QWT_ROOT}/qwtfunctions.pri )
# Fix for parallel build race condition where moc_predefs.h is missing
compiler_moc_header_make_all.depends += compiler_moc_predefs_make_all
QWT_OUT_ROOT = $${OUT_PWD}/..
TEMPLATE = lib