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

Building static libs with mingw32-make and Git Bash generates NUL files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.3
    • 5.9.1
    • Build tools: qmake
    • None
    • 5fa64386336b3072a12054726483e4850fc53dea

    Description

      Since this commit http://code.qt.io/cgit/qt/qtbase.git/commit/?id=f5f772849ca1ada44f3de537633eec2664b14fd4, qmake deletes .a files before calling ar. When building on Windows with mingw32-make from the Git Bash shell, this generates a command like this:

      rm foo.a 2>NUL

      This causes the creation of a NUL file instead of suppressing the error message.

      I believe the code should use the isWindowsShell() function to decide whether it should redirect to NUL or to /dev/null instead of hardcoding it at build time.

      Attachments

        Issue Links

          Activity

            People

              orgads Orgad Shaneh
              agateau Aurélien Gâteau
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: