mesonbuild / wrapdb

New wrap requests
https://mesonbuild.com/Adding-new-projects-to-wrapdb.html
MIT License
69 stars 174 forks source link

sdl2: stop propagating internal compilation arguments to dependent projects #1542

Closed bitrunner closed 1 month ago

bitrunner commented 1 month ago

This change removes the compile_args argument from the sdl2 dependency to stop propagating SDL's internal compilation arguments to dependent projects to avoid GCC compiler warnings like the following when building a C++ project against SDL: cc1plus: warning: command-line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++

SDL's own sdl2-config --cflags utility for applying the recommended compiler arguments to dependent projects does not include the internal compiler arguments used to build the SDL library so this change aligns the meson wrap more closely to using SDL's native build systems or standard Linux distribution packages.