Uploaded image for project: 'Open Development'
  1. Open Development
  2. OPEN-296

Visual Studio 2013 is not spawning multiple cl.exe for parallel compilatom

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Unset
    • Resolution: Unresolved
    • Component/s: None
    • Labels:
      None
    • Patch attached:
      Patch attached

      Description

      Visual Studio can runs builds in two different ways in parallel:

      1. Build multiple projects at once. This is a global option and still works.

      2. Spawn multiple cl.exe at once, this is a project setting and does not work anymore in the tools-update viewer. Reason being indra/cmake/00-Common.cmake trying to configure this via /MP. That worked with VS2010, but not with VS2013, reasons is cmake not generation ProcessorNumber setting and thus VS ignoring the MultiProcessorCompilation setting as a whole.
      This makes the compilation of the secondlife-bin project pretty long, as it runs through each cpp in sequential manner.

      Thus in indra/cmake/00-Common.cmake the number of jobs to use must be explicitly set, with eg /MP4

      Adding patch that uses 8 as default. The default can be overridden via -DVS_NUM_JOBS=<number>

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            nicky.dasmijn Nicky Dasmijn
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                PagerDuty