Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
6.0.0
Description
As per https://gitlab.kitware.com/cmake/cmake/-/issues/20812
- CMake has some weird flag defaults for RelWithDebInfo on Windows, where it includes /INCREMENTAL which is a development feature, and increases binary size and is cache unfriendly.
- RelWithDebInfo on Windows also includes /Ob1, which disables automatic inlining
- We should use -O2 for both Release and RelWithDebInfo configs. With GCC / AppleClang, Release defaults to -O3, while RelWithDebInfo to -O2.
- In general we should make RelWithDebInfo be equal to Release + the debug generation flag.
We aim to use RelWithDebInfo for Packaging configurations, so it's important to get them right.
Attachments
Issue Links
- relates to
-
QTBUG-86866 Fix optimization flags used for Core and Gui
- Closed
-
QTBUG-83929 Scan through and port all defines, compile and link flags from mkspecs/foo/bar.conf files to relevant Qt::Platform or Qt::PlatformCommonInternal targets
- Closed
-
QTBUG-89821 Re-running CMake causes Android builds to recompile everything when building Qt itself
- Closed