configure, meson: move C++ compiler detection to meson.build
commitb485458e00dae4af5e2b7b1c17521e2885180544
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Nov 2021 11:31:52 +0000 (8 12:31 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 1 Oct 2022 19:16:36 +0000 (1 21:16 +0200)
treea53770c1c583dc48a3844e83e1a3e2f0d97e2907
parent6d3226357fb848499aacf609bf628932bca781ea
configure, meson: move C++ compiler detection to meson.build

The test is slightly weaker than before, because it does not
call an extern "C" function from a C source file.  However,
in practice what we seek to detect is ABI compatibility of the
various sanitizer flags, and for that it is enough to compile
anything with CC and link it with CXX.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure
meson.build
scripts/main.c [new file with mode: 0644]