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

cpp module restricts product.version to x.y.z

    XMLWordPrintable

Details

    • All

    Description

      When building on Linux, the cpp module uses product.version to determine whether it should create symlinks for shared objects or not and enforces the format x.y.z and throws an error otherwise.

      This is too restrictive. At least SemVer should be allowed.

      From GenericGcc.qbs:

              if (!Gcc.isNumericProductVersion(product.version)) {
                  // Dynamic library version numbers like "A" or "B" are common on Apple platforms, so
                  // don't restrict the product version to a componentized version number here.
                  if (cpp.imageFormat === "macho")
                      return product.version;
      
                  throw("product.version must be a string in the format x[.y[.z[.w]] "
                        + "where each component is an integer");
              }
      

      Attachments

        For Gerrit Dashboard: QBS-1486
        # Subject Branch Project Status CR V

        Activity

          People

            rweickelt Richard Weickelt
            rweickelt Richard Weickelt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes