aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/vs2010backend.py
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2021-10-08 10:08:29 -0700
committerAndres Freund <andres@anarazel.de>2021-10-08 10:10:19 -0700
commit14096260c434a6fcc80d06eeba006bd1965b213c (patch)
tree9e4a39b4a019717207313055a737fdc331f0daf8 /mesonbuild/backend/vs2010backend.py
parent1fb2818d42726a753d0886875fa810151e3fd2bf (diff)
downloadmeson-14096260c434a6fcc80d06eeba006bd1965b213c.zip
meson-14096260c434a6fcc80d06eeba006bd1965b213c.tar.gz
meson-14096260c434a6fcc80d06eeba006bd1965b213c.tar.bz2
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
Diffstat (limited to 'mesonbuild/backend/vs2010backend.py')
-rw-r--r--mesonbuild/backend/vs2010backend.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py
index 9c3a137..dae04ff 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')