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

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 1.2.0
    • General
    • 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

            jbornema Joerg Bornemann
            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