summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPaolo Bonzini2021-11-08 12:31:52 +0100
committerPaolo Bonzini2022-10-01 21:16:36 +0200
commitb485458e00dae4af5e2b7b1c17521e2885180544 (patch)
treea53770c1c583dc48a3844e83e1a3e2f0d97e2907 /scripts
parentmeson: multiple names can be passed to dependency() (diff)
downloadqemu-b485458e00dae4af5e2b7b1c17521e2885180544.tar.gz
qemu-b485458e00dae4af5e2b7b1c17521e2885180544.tar.xz
qemu-b485458e00dae4af5e2b7b1c17521e2885180544.zip
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/main.c b/scripts/main.c
new file mode 100644
index 0000000000..b552c8e4ed
--- /dev/null
+++ b/scripts/main.c
@@ -0,0 +1 @@
+int main(void) {}