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

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.1, 6.1.0 Alpha
    • Component/s: Build System: CMake
    • Labels:
    • Environment:
      Ubuntu 20.04 LTS
      clang 10.0.0
    • Platform/s:
      All
    • Commits:
      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

              Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              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