diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-11-08 12:31:52 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-10-01 21:16:36 +0200 |
commit | b485458e00dae4af5e2b7b1c17521e2885180544 (patch) | |
tree | a53770c1c583dc48a3844e83e1a3e2f0d97e2907 /scripts | |
parent | 6d3226357fb848499aacf609bf628932bca781ea (diff) |
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.c | 1 |
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) {} |