mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 09:40:10 +00:00
26edfe6d18
We really always want to force-include msvc_recommended_pragmas.h to check for things at compile time so that we can avoid stuff like missing includes or attempting to return a value in a function that is supposed to have a void-return-type. The current problem is that, as indicated in the Visual Studio CI job, that we couldn't locate msvc_recommended_pragmas.h during the build if GLib is built as a subproject, and/or when msvc_recommended_pragmas.h is not in the paths indicated by %INCLUDE%, meaning that the aforementioned issues would not be caught by CI, which will then break builds on Visual Studio for people when msvc_recommended_pragmas.h is found during their builds. It would also be nice to be quiet from the warnings that we can really disregard anyways. So, add a copy of msvc_recommended_pragmas.h from GLib and update the build files to look for it in build-aux/msvc, so that it can always be used during the build, especially by the CI. |
||
---|---|---|
.. | ||
msvc_recommended_pragmas.h |