Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89476

[REG 5.15 -> 6.0] Configure doesn't build for release by default

    XMLWordPrintable

Details

    • All
    • b4b33846b4dc703e637b7d365676345eda0da460 (qt/qtbase/dev) 5d6f2238548fe8415e84099fc14470e189c9e726 (qt/qtbase/6.0)

    Description

      1. 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.

      2. 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtbuildsystem Qt Build System Team
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes