From b485458e00dae4af5e2b7b1c17521e2885180544 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 8 Nov 2021 12:31:52 +0100 Subject: configure, meson: move C++ compiler detection to meson.build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Paolo Bonzini --- scripts/main.c | 1 + 1 file changed, 1 insertion(+) create mode 100644 scripts/main.c (limited to 'scripts') diff --git a/scripts/main.c b/scripts/main.c new file mode 100644 index 0000000..b552c8e --- /dev/null +++ b/scripts/main.c @@ -0,0 +1 @@ +int main(void) {} -- cgit v1.1