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

MSVC module overwrites build environment

    XMLWordPrintable

    Details

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

      Description

      From windows-msvc.qbs:

          setupBuildEnvironment: {
              for (var key in buildEnv) {
                  var v = new ModUtils.EnvironmentVariable(key);
                  v.value = buildEnv[key];
                  v.set();
              }
          }
      

      As a result, all "appendable" variables such as PATH now contain only the values retrieved by the probe, while the original values are overwritten. These variables need to be merged instead.

        Attachments

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            kandeler Christian Kandeler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes