Fix VS C++ module support.

pull/8365/head
Jussi Pakkanen 4 years ago
parent 3ed30cea6e
commit f3727c62c6
  1. 3
      mesonbuild/backend/ninjabackend.py

@ -880,7 +880,8 @@ int dummy;
cpp = target.compilers['cpp'] cpp = target.compilers['cpp']
if cpp.get_id() != 'msvc': if cpp.get_id() != 'msvc':
return False return False
if self.environment.coredata.options[OptionKey('std', machine=target.for_machine, lang='cpp')] != 'latest': cppversion = self.environment.coredata.options[OptionKey('std', machine=target.for_machine, lang='cpp')].value
if cppversion not in ('latest', 'c++latest', 'vc++latest'):
return False return False
if not mesonlib.current_vs_supports_modules(): if not mesonlib.current_vs_supports_modules():
return False return False

Loading…
Cancel
Save