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']
if cpp.get_id() != 'msvc':
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
if not mesonlib.current_vs_supports_modules():
return False

Loading…
Cancel
Save