OSDN Git Service

meson: perform snappy test with the C++ compiler if used
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Nov 2021 13:35:14 +0000 (14:35 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Nov 2021 09:55:58 +0000 (10:55 +0100)
commit565174d08ed34a849f8420f0d9c97d08be3835aa
treea728e7e4c252353a07f52cd5ec26a18f55e03176
parentb3af7fdf9cc537f8f0dd3e2423d83f5c99a457e8
meson: perform snappy test with the C++ compiler if used

Snappy is written in C++ and as such needs to link against libstdc++.  When
linking statically, this means that the compile test cannot succeed unless
performed with a C++ compiler.  Do so if link_language is set to C++; if it
is C, the test will usually fail and snappy will be disabled.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build