glib/docs
Philip Withnall 627dc1415c Revert "build-sys: drop -mms-bitfields GCC flag"
This reverts commit 252bbcd207.

After further discussion in !3511, we’ve decided that there are risks
associated with this change, and it’s not the best way of addressing the
original problem.

The original motivation for the change turned out to be that
`-mms-bitfields` was not handled by `windres`, which was receiving it
from `pkg-config --cflags glib-2.0` in some projects. However, if
`windres` is claiming to accept CFLAGS then it should accept (and
ignore) `-mms-bitfields`, since the `-m` family of options are defined
in `man gcc`, just like `-I`, `-D`, etc.

There is some question that there might still be third party projects
which are built with an old enough compiler that `-mms-bitfields` is not
the compiler default. For that reason, we should either still continue
to specify `-mms-bitfields` in the `.pc` file, or add a test to assert
that third party projects are always compiled with `-mms-bitfields` set.
But adding a new test for all third-party compilations is risky (if we
get it wrong, things will break; and it’s a test which may behave
differently on different platforms), so it seems safer to just keep
`-mms-bitfields` in `.pc` for now.

Once all compilers which we require specify `-mms-bitfields` by default,
we can finally drop this flag (without adding a test for third-party
compilations).

See: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3511
2023-07-29 11:54:22 +03:00
..
reference testutils: Factor out g_test_disable_crash_reporting() 2023-07-26 15:41:47 +01:00
backports.md Merge branch 'backports-typo-fix' into 'main' 2023-06-29 16:54:22 +00:00
CODEOWNERS docs: Add lb90 as a Windows maintainer 2023-05-02 11:19:31 +01:00
issue-and-merge-request-management.md docs: Document issue and merge request triaging and review guidelines 2023-06-29 16:50:00 +01:00
macros.md docs: Port docs/macros.txt to Markdown and update it 2023-04-28 00:07:12 +01:00
meson-version.md docs: Update Meson version policy to mention freedesktop SDK 2022-11-24 12:13:21 +00:00
rationales.md docs: Move README.rationale to docs subdirectory 2022-05-11 13:02:49 +01:00
releasing.md docs: Document the release process 2022-06-21 16:16:10 +01:00
roadmap.md docs: Document the release process 2022-06-21 16:16:10 +01:00
supported-platforms.md docs: Expand supported platforms documentation a little 2023-06-29 15:51:44 +01:00
testing.md docs: Add a testing policy 2022-06-14 15:19:32 +01:00
toolchain-requirements.md Rename GTK+ to GTK (mostly comments and documentation) 2023-05-10 10:56:44 +07:00
win32-build.md Revert "build-sys: drop -mms-bitfields GCC flag" 2023-07-29 11:54:22 +03:00