meson: Ignore gcc_struct check

This commit is contained in:
Matt Borgerson 2025-01-06 16:22:34 -07:00
parent af22de5eb7
commit 675599dd56
1 changed files with 5 additions and 5 deletions

View File

@ -366,11 +366,11 @@ elif host_os == 'sunos'
qemu_common_flags += '-D__EXTENSIONS__' qemu_common_flags += '-D__EXTENSIONS__'
elif host_os == 'haiku' elif host_os == 'haiku'
qemu_common_flags += ['-DB_USE_POSITIVE_POSIX_ERRORS', '-D_BSD_SOURCE', '-fPIC'] qemu_common_flags += ['-DB_USE_POSITIVE_POSIX_ERRORS', '-D_BSD_SOURCE', '-fPIC']
elif host_os == 'windows' # elif host_os == 'windows'
if not compiler.compiles('struct x { int y; } __attribute__((gcc_struct));', # if not compiler.compiles('struct x { int y; } __attribute__((gcc_struct));',
args: '-Werror') # args: '-Werror')
error('Your compiler does not support __attribute__((gcc_struct)) - please use GCC instead of Clang') # error('Your compiler does not support __attribute__((gcc_struct)) - please use GCC instead of Clang')
endif # endif
endif endif
# Choose instruction set (currently x86-only) # Choose instruction set (currently x86-only)