]> xenbits.xensource.com Git - qemu-xen.git/commit
meson.build: Check for the availability of __attribute__((gcc_struct)) on MSYS2
authorThomas Huth <thuth@redhat.com>
Thu, 15 Aug 2024 12:27:19 +0000 (14:27 +0200)
committerThomas Huth <thuth@redhat.com>
Fri, 16 Aug 2024 07:15:19 +0000 (09:15 +0200)
commite25264fe7b0455b45a6eb519d8e9ba2a708228fb
treefc490ff162649a356893b0412898ddc19cf01152
parente4a4edc10ab6a621e1c18eb73fc3e6f5d3f7c2e1
meson.build: Check for the availability of __attribute__((gcc_struct)) on MSYS2

Since quite a while MSYS2 now supports Clang as a compiler, too.
Unfortunately, this compiler is lacking the __attribute__((gcc_struct))
that we need for compiling on Windows. But since the compiler is
available now, some people started to use it to compile QEMU on MSYS2,
apparently ignoring the compiler warnings (see for example the ticket at
https://gitlab.com/qemu-project/qemu/-/issues/2476 ). These builds are
likely broken in a couple of spots, so let's make sure that we rather
bail out early in the configuration phase instead of allowing the build
to succeed with warnings.

Message-ID: <20240815122719.727639-1-thuth@redhat.com>
Tested-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Thomas Huth <thuth@redhat.com>
meson.build