Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1532

Changes in header file not detected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 1.14.1
    • Dependency Tracking
    • None

    Description

      Header files may erroneously be disconnected from the dependency list of CPP object files if they are also used as input for a rule in another product.  This can happen if changes are made to the other project causing it to be reparsed. The problem can be reproduced in the attached example by running:

       

      qbs
      sed -i 's/cat/echo/g' lib2/lib2.qbs
      

       

      You can now touch `lib1/lib1.h` and build again, but `app.cpp` which indirectly includes `lib1.h` won't get recompiled as it should. `lib1.h` has been removed from the `childrenAddedByScanner` list in `app.cpp.o`'s artifact.

       

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            hdhauk Halvor Haukvik
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes