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

Call vcvarsall.bat to set the build environment in the MSVC module

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 1.2.0
    • None
    • General
    • None
    • 9c42cb3e891da2fdb915430ecad13120e01eb4ed

    Description

      The current build environment setup for MSVC is quite broken, and will cause noticeable differences between QBS builds with Qt Creator (which calls vcvarsall.bat itself) and command line QBS builds.

      To solve this problem permanently, QBS should obtain the proper environment variable settings by calling vcvarsall.bat with the correct target architecture argument in the MSVC module's setupBuildEnvironment property.

      Documentation on vcvarsall.bat and the options it supports can be found here: http://msdn.microsoft.com/en-us/library/vstudio/x4d2c09s.aspx

      Should QBS clear the environment it inherits from Qt Creator to prevent similar divergences in the future?

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes