From 14096260c434a6fcc80d06eeba006bd1965b213c Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Fri, 8 Oct 2021 10:08:29 -0700 Subject: [PATCH] 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 --- mesonbuild/backend/vs2010backend.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index 9c3a1379c..dae04ff08 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/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')