From e1341d70ced626031cbf775283a976672adb2c57 Mon Sep 17 00:00:00 2001 From: "John W. Parent" <45471568+johnwparent@users.noreply.github.com> Date: Fri, 10 Feb 2023 13:53:16 -0500 Subject: 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. --- lib/spack/spack/build_systems/msbuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/build_systems/msbuild.py b/lib/spack/spack/build_systems/msbuild.py index d451d26be6..90c4018de8 100644 --- a/lib/spack/spack/build_systems/msbuild.py +++ b/lib/spack/spack/build_systems/msbuild.py @@ -77,7 +77,7 @@ class MSBuildBuilder(BaseBuilder): Override this method to select a specific version of the toolchain or change selection heuristics. 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 def std_msbuild_args(self): -- cgit v1.2.3-60-g2f50