]> git.proxmox.com Git - mirror_qemu.git/commitdiff
meson: Mingw64 gcc doesn't recognize system include_type for sdl2
authorYonggang Luo <luoyonggang@gmail.com>
Wed, 26 Aug 2020 15:10:03 +0000 (23:10 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Aug 2020 16:52:30 +0000 (18:52 +0200)
Windows paths result in command lines like "-isystemC:/msys64/..." that
are not recognized by GCC.  "include_type: 'system'" was only included
in an attempt to fix the -Wundef warnings in SDL 2.0.8, but it was not
effective.  Therefore we can fix this by remove the include_type.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build

index 90128616e5f639842398cd9169d9fe5e4792146c..e6aa44be544b15a47ffafbcb75e9827c012f4054 100644 (file)
@@ -240,8 +240,7 @@ endif
 
 sdl = not_found
 if have_system
-  sdl = dependency('sdl2', required: get_option('sdl'), static: enable_static,
-                   include_type: 'system')
+  sdl = dependency('sdl2', required: get_option('sdl'), static: enable_static)
   sdl_image = not_found
 endif
 if sdl.found()