[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 15/17] meson: Mingw64 gcc doesn't recognize system include_type fo
From: |
Paolo Bonzini |
Subject: |
[PULL 15/17] meson: Mingw64 gcc doesn't recognize system include_type for sdl2 |
Date: |
Thu, 27 Aug 2020 12:59:54 -0400 |
From: Yonggang Luo <luoyonggang@gmail.com>
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 | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/meson.build b/meson.build
index 90128616e5..e6aa44be54 100644
--- a/meson.build
+++ b/meson.build
@@ -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()
--
2.26.2
- Re: [PULL 02/17] meson: Build qemu-nbd on macOS again, (continued)
- [PULL 03/17] meson: Don't make object files for dtrace on macOS, Paolo Bonzini, 2020/08/27
- [PULL 04/17] scripts/qemu-version.sh: Add missing space before ']', Paolo Bonzini, 2020/08/27
- [PULL 08/17] meson: move pixman detection to meson, Paolo Bonzini, 2020/08/27
- [PULL 10/17] configure: add --ninja option, Paolo Bonzini, 2020/08/27
- [PULL 11/17] meson: cleanup xkbcommon detection, Paolo Bonzini, 2020/08/27
- [PULL 06/17] meson: Fix chardev-baum.so name, Paolo Bonzini, 2020/08/27
- [PULL 05/17] meson: Fix meson build with --enable-libdaxctl, Paolo Bonzini, 2020/08/27
- [PULL 09/17] meson: skip SDL2 detection if --disable-system, Paolo Bonzini, 2020/08/27
- [PULL 16/17] meson: set colorout to auto, Paolo Bonzini, 2020/08/27
- [PULL 15/17] meson: Mingw64 gcc doesn't recognize system include_type for sdl2,
Paolo Bonzini <=
- [PULL 13/17] ninjatool: quote dollars in variables, Paolo Bonzini, 2020/08/27
- [PULL 07/17] configure: default to PIE disabled on Windows platforms, Paolo Bonzini, 2020/08/27
- [PULL 14/17] meson: fix relpath failure on Win32, Paolo Bonzini, 2020/08/27
- [PULL 12/17] meson: don't require CONFIG_VTE for the GTK UI, Paolo Bonzini, 2020/08/27
- [PULL 17/17] ninjatool: Fixes E$$: in generated Makefile.ninja, Paolo Bonzini, 2020/08/27
- Re: [PULL 00/17] Meson fixes for 2020-08-27, Peter Maydell, 2020/08/28