Skip to content

Commit

Permalink
meson: Mingw64 gcc doesn't recognize system include_type for sdl2
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lygstate authored and bonzini committed Aug 27, 2020
1 parent cb23fd4 commit 363743d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions meson.build
Expand Up @@ -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()
Expand Down

0 comments on commit 363743d

Please sign in to comment.