diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index 525b7f0b2..61f755b00 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -882,7 +882,6 @@ class Vs2010Backend(backends.Backend): header, impl, suffix = pch_sources[lang] relpath = os.path.join(proj_to_src_dir, impl) inc_cl = ET.SubElement(inc_src, 'CLCompile', Include=relpath) - lang = Vs2010Backend.lang_from_source_file(s) pch = ET.SubElement(inc_cl, 'PrecompiledHeader') pch.text = 'Create' pch_out = ET.SubElement(inc_cl, 'PrecompiledHeaderOutputFile') diff --git a/tools/cmake2meson.py b/tools/cmake2meson.py index 80bcaa4a0..eae6344c4 100755 --- a/tools/cmake2meson.py +++ b/tools/cmake2meson.py @@ -278,6 +278,7 @@ class Converter: for o in self.options: (optname, description, default) = o if default is None: + typestr = '' defaultstr = '' else: if default == 'OFF':