aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-11-08 16:56:36 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-11-08 23:52:01 +0530
commit30392a3a8a2f14ee1b3b7e3f66be9728b6a6b52e (patch)
tree3e452a81548132ba48e2ae7e6f4e26bf330145bb
parentf144e50f5ca65ba67c23ff262a79c35a2c444006 (diff)
downloadmeson-30392a3a8a2f14ee1b3b7e3f66be9728b6a6b52e.zip
meson-30392a3a8a2f14ee1b3b7e3f66be9728b6a6b52e.tar.gz
meson-30392a3a8a2f14ee1b3b7e3f66be9728b6a6b52e.tar.bz2
Inherit VisualStudioCPPCompiler from CPPCompiler
Without this our custom C++ has_header_symbol implementation is not used with the Visual Studio C++ compiler.
-rw-r--r--mesonbuild/compilers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py
index 53d298a..5953d04 100644
--- a/mesonbuild/compilers.py
+++ b/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