QtWidgets: unbreak unity-build-batch-size 100000

Exclude TUs that cause problems in a build where all of QtWidgets's .cpp
files end up in a single unity_0_cxx.cxx. This should ensure that the
build will forthwith not fail because someone added a new .cpp file in
the "wrong" position.

Of course, this is just a snapshot, with my configuration: GCC 13,
Ubuntu 20.04, -developer-build, C++23, -sctp.

Task-number: QTBUG-115352
Change-Id: I6a445701e2ac41d67a3ec69715b7bf6ed5ec65f7
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit b91891a76bc2d9b47ba84e9ebefeccd77a76a87e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Marc Mutz 2023-07-20 13:33:52 +02:00 committed by Qt Cherry-pick Bot
parent bdaeee9736
commit aea3d99a39

View File

@ -661,6 +661,8 @@ qt_internal_extend_target(Widgets CONDITION QT_FEATURE_inputdialog
qt_internal_extend_target(Widgets CONDITION QT_FEATURE_messagebox qt_internal_extend_target(Widgets CONDITION QT_FEATURE_messagebox
SOURCES SOURCES
dialogs/qmessagebox.cpp dialogs/qmessagebox.h dialogs/qmessagebox.cpp dialogs/qmessagebox.h
NO_UNITY_BUILD_SOURCES
dialogs/qmessagebox.cpp # error: Old_Ok [etc] was not declared in this scope
) )
if(QT_FEATURE_messagebox) if(QT_FEATURE_messagebox)