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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • 1.2.0
    • General
    • 32c4d3d7d26937c8f2a0f2f99add2eb0b0f1e503

      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.

        1. dependency-bug.tar.bz2
          0.4 kB
          Christian Kandeler
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes