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

Depending products are not rebuilt if the dependency did not originally have output artifacts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: General
    • Labels:
    • Commits:
      32c4d3d7d26937c8f2a0f2f99add2eb0b0f1e503

      Description

      Note: The bug summary is just an educated guess; I'm not absolutely sure about the reason for the observed behavior.

      Consider this project:

      import qbs
      
      Project {
          DynamicLibrary {
             //  Depends { name: "cpp" }
              name: "lib"
              files: "lib.cpp"
          }
      
          CppApplication {
              name: "app"
              files: "main.cpp"
              Depends { name: "lib" }
          }
      }
      

      The library will not get built, because the cpp dependency is missing. Assume that the app project will build fine without the library. Then, if you uncomment the cpp dependency in the library and build again, the library will now be built as expected, but the app product will not get rebuilt.
      Full minimal project to reproduce is attached.

        Attachments

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

          Activity

            People

            Assignee:
            jbornema Joerg Bornemann
            Reporter:
            kandeler Christian Kandeler
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes