Inherit VisualStudioCPPCompiler from CPPCompiler

Without this our custom C++ has_header_symbol implementation is not used
with the Visual Studio C++ compiler.
pull/1006/head
Nirbheek Chauhan 8 years ago
parent f144e50f5c
commit 30392a3a8a
  1. 3
      mesonbuild/compilers.py

@ -1883,9 +1883,10 @@ class VisualStudioCCompiler(CCompiler):
pdbarr += ['pdb']
return ['/DEBUG', '/PDB:' + '.'.join(pdbarr)]
class VisualStudioCPPCompiler(VisualStudioCCompiler):
class VisualStudioCPPCompiler(VisualStudioCCompiler, CPPCompiler):
def __init__(self, exelist, version, is_cross, exe_wrap):
self.language = 'cpp'
CPPCompiler.__init__(self, exelist, version, is_cross, exe_wrap)
VisualStudioCCompiler.__init__(self, exelist, version, is_cross, exe_wrap)
self.base_options = ['b_pch'] # FIXME add lto, pgo and the like

Loading…
Cancel
Save