Skip to content

Commit

Permalink
meson.build: remove warning for clang on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Pierrick Bouvier <[email protected]>
  • Loading branch information
pbo-linaro committed Mar 6, 2025
1 parent f902635 commit 9cfdcda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ elif host_os == 'sunos'
elif host_os == 'haiku'
qemu_common_flags += ['-DB_USE_POSITIVE_POSIX_ERRORS', '-D_BSD_SOURCE', '-fPIC']
elif host_os == 'windows'
# spice headers report a warning with clang
qemu_common_flags += ['-Wno-pragma-pack']
# plugins use delaylib, and clang needs to be used with lld to make it work.
if compiler.get_id() == 'clang' and compiler.get_linker_id() != 'ld.lld'
error('On windows, you need to use lld with clang - use msys2 clang64/clangarm64 env')
Expand Down

0 comments on commit 9cfdcda

Please sign in to comment.