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

Missing optimization flags with -force-debug-info

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.5.0 Beta
    • 5.4.1
    • Build System
    • None
    • OS X 10.10
    • 8299e408df73f085744cec8b9cae3af4171035f8,

    Description

      When passing -force-debug-info to configure, the compiler optimization flags are bypassed when doing a release build.

      This can be fixed in qtbase/mkspecs/features/default_post.prf:35

      force_debug_info {
          QMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_OPTIMIZE $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
          QMAKE_CXXFLAGS_RELEASE = $$QMAKE_*CFLAGS_OPTIMIZE $$QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO
          QMAKE_OBJECTIVE_CFLAGS_RELEASE = $$QMAKE_OBJECTIVE_CFLAGS_RELEASE_WITH_DEBUGINFO
          QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
      }
      

      Andy came up with this fix. It only appears to affect OS X.

      Attachments

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

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            michael.howard@am.sony.com Michael Howard
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes