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

should warn about identical DESTDIR/TARGET for debug_and_release builds

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 5.14.0 Alpha
    • 4.4.1
    • Build tools: qmake
    • None
    • e75aed1a96e626f079af307c5604ddf9054ecafc (qt/qtbase/dev)

    Description

      Even if set to debug, prl files are always in "release mode" when DESTDIR is used.

      Example Code:

      test.pro
      TEMPLATE = lib 
      CONFIG += debug staticlib create_prl 
      TARGET = x 
      SOURCES += x.cpp 
      DESTDIR = out 
      
      x.cpp
      int x() { return 1; } 
      

      run these commands:

      qmake 
      nmake
      

      out/x.prl is in "release mode", for example QMAKE_PRL_LIBS contains release libs (QtCore.lib, etc) when it should be in "debug mode".

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            xcm Martin Petersson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes