Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.0.0
-
Ubuntu 20.04 LTS
clang 10.0.0
-
-
b4b33846b4dc703e637b7d365676345eda0da460 (qt/qtbase/dev) 5d6f2238548fe8415e84099fc14470e189c9e726 (qt/qtbase/6.0)
Description
- Get configure's help:
./configure -h
It will show you:
-release ............. Build Qt with debugging turned off [yes]
In other words, release builds are meant to be the default when configuring Qt.
- Configure and build Qt.
I used:MAKEFLAGS=-j8 nice ~/dev/src/qtbase/configure -platform linux-clang -opensource -confirm-license -nomake examples -nomake tests -prefix $PWD && nice make -j8
clang will not use flags "-DNDEBUG -O2". The resulting libQt6Core.so.6.0.0 will have 50MB. This does not seem to be a release build. When specifying "-release" explicitly, libQt6Core.so.6.0.0 will have less than 7MB.
I think release builds should still be the default. If the change was intentional, at least configure's help text should be updated.
Attachments
Issue Links
- depends on
-
QTBUG-89410 Change default CMAKE_BUILD_TYPE to Release
- Closed
- relates to
-
QTQAINFRA-4058 Test that configure gives release builds by default
- Closed
-
QTQAINFRA-4059 New test, Qt6: run configure without parameters, verify default build mode
- Closed
- resulted from
-
QTBUG-87830 config.summary is missing
- Closed
- resulted in
-
QTBUG-89122 Building Qt with cmake needs 15% more space than with qmake
- Closed