backend/vs: Parallelize compilation inside one project.

UseMultiToolTask allows parallelism inside a project, without requiring cl.exe
internal multi-threading (which meson generated projects currently can't use,
mainly due to specifying output filenames for each object).

TODO:
- think about making behaviour conditional on msbuild version / add comment
  why not
pull/9373/head
Andres Freund 3 years ago
parent 1fb2818d42
commit 14096260c4
  1. 1
      mesonbuild/backend/vs2010backend.py

@ -549,6 +549,7 @@ class Vs2010Backend(backends.Backend):
pname.text = target_name
if self.windows_target_platform_version:
ET.SubElement(globalgroup, 'WindowsTargetPlatformVersion').text = self.windows_target_platform_version
ET.SubElement(globalgroup, 'UseMultiToolTask').text = 'true'
ET.SubElement(root, 'Import', Project=r'$(VCTargetsPath)\Microsoft.Cpp.Default.props')

Loading…
Cancel
Save