commit | 565174d08ed34a849f8420f0d9c97d08be3835aa | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Thu Nov 04 14:35:14 2021 +0100 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Mon Nov 08 10:55:58 2021 +0100 |
tree | a728e7e4c252353a07f52cd5ec26a18f55e03176 | |
parent | b3af7fdf9cc537f8f0dd3e2423d83f5c99a457e8 [diff] |
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>