MSBuilder/MSVC: correct toolchain ver (#35424)

#35098 added the correct extraction of toolset version for the MSVC
compiler. This updates the associated method in MSBuilder to retrieve
the (now correct) property.
This commit is contained in:
John W. Parent 2023-02-10 13:53:16 -05:00 committed by GitHub
parent 38c321abb3
commit e1341d70ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ def toolchain_version(self):
Override this method to select a specific version of the toolchain or change Override this method to select a specific version of the toolchain or change
selection heuristics. selection heuristics.
Default is whatever version of msvc has been selected by concretization""" Default is whatever version of msvc has been selected by concretization"""
return self.compiler.msvc_version return "v" + self.pkg.compiler.platform_toolset_ver
@property @property
def std_msbuild_args(self): def std_msbuild_args(self):