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
For Gerrit Dashboard: QTBUG-89476 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
327004,2 | oss-fuzz: Explicitly build for release | dev | qt/qtqa | Status: MERGED | +2 | 0 |
327610,4 | CMake: Use Release build type by default | dev | qt/qtbase | Status: MERGED | +2 | 0 |
327682,2 | CMake: Use Release build type by default | 6.0 | qt/qtbase | Status: MERGED | +2 | 0 |