summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn W. Parent <45471568+johnwparent@users.noreply.github.com>2023-02-10 13:53:16 -0500
committerGitHub <noreply@github.com>2023-02-10 10:53:16 -0800
commite1341d70ced626031cbf775283a976672adb2c57 (patch)
treea29911d078697fa250c0dc9817e5cd84bfd785d7 /lib
parent38c321abb3ff40a8fe494c40999c7c0b84a44082 (diff)
downloadspack-e1341d70ced626031cbf775283a976672adb2c57.tar.gz
spack-e1341d70ced626031cbf775283a976672adb2c57.tar.bz2
spack-e1341d70ced626031cbf775283a976672adb2c57.tar.xz
spack-e1341d70ced626031cbf775283a976672adb2c57.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/msbuild.py2
1 files changed, 1 insertions, 1 deletions
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):