aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/vs2017backend.py
diff options
context:
space:
mode:
authorLuke Elliott <luke.b.elliott@gmail.com>2021-11-24 09:54:37 +0000
committerJussi Pakkanen <jpakkane@gmail.com>2021-11-27 20:06:54 +0200
commit26b102e817af99d8da55eecba09e8398ec0e3d88 (patch)
treef2daff6d0dcad85a1f432ef998fef1c96713cebf /mesonbuild/backend/vs2017backend.py
parent007c4659c2154755fc1f57d415afc8a736f81af2 (diff)
downloadmeson-26b102e817af99d8da55eecba09e8398ec0e3d88.zip
meson-26b102e817af99d8da55eecba09e8398ec0e3d88.tar.gz
meson-26b102e817af99d8da55eecba09e8398ec0e3d88.tar.bz2
Fix '# Visual Studio <>' comment in sln files with VS backend
such that Visual Studio Version Selector works.
Diffstat (limited to 'mesonbuild/backend/vs2017backend.py')
-rw-r--r--mesonbuild/backend/vs2017backend.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/backend/vs2017backend.py b/mesonbuild/backend/vs2017backend.py
index 452d7a6..e9f949d 100644
--- a/mesonbuild/backend/vs2017backend.py
+++ b/mesonbuild/backend/vs2017backend.py
@@ -27,6 +27,8 @@ class Vs2017Backend(Vs2010Backend):
super().__init__(build, interpreter)
self.name = 'vs2017'
self.vs_version = '2017'
+ self.sln_file_version = '12.00'
+ self.sln_version_comment = '15'
# We assume that host == build
if self.environment is not None:
comps = self.environment.coredata.compilers.host
@@ -59,4 +61,4 @@ class Vs2017Backend(Vs2010Backend):
if 'c' in file_args:
optargs = [x for x in file_args['c'] if x.startswith('/std:c')]
if optargs:
- ET.SubElement(clconf, 'LanguageStandard_C').text = optargs[0].replace("/std:c", "stdc") \ No newline at end of file
+ ET.SubElement(clconf, 'LanguageStandard_C').text = optargs[0].replace("/std:c", "stdc")