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

qmake locks moc files with RW lock on Windows, which causes spurious errors when qmake runs in parallel on profiles that share moc files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.0.0
    • 4.8.0
    • Build tools: qmake
    • None
    • Windows 7, Visual Studio 2005/8/10
    • 7ff393944e5d78d48f4b1f63592d7362ae06fd5d

    Description

      The error occurred because we run qmake in parallel in our build systems and some profiles share the same source files, so that
      the same moc files get accessed by the qmakes.

      It is correct to lock the file for writing, but it is wrong to lock it for reading,
      the attached patch fixed this issue.

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            florianlink Florian Link
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes