Skip to content

meson: Debug build cleanups and additions

Robert Mader requested to merge rmader/mutter:debug-builds into master

This MR does the following:

  • Add debug flags based on meson's debug option instead of buildtype. This allows custom build configurations to behave like a debug or release build. The debug option is automatically set for the debug and debugoptimized buildtypes by meson.
  • Add -fno-omit-frame-pointer to Mutter/Cogl. Not to Clutter though, as that would require more changes to how Clutter's gir is created
  • Remove -DG_DISABLE_CAST_CHECKS from Clutter in debug builds
  • Add -DG_DISABLE_CHECKS, -DG_DISABLE_ASSERT and -DG_DISABLE_CAST_CHECKS to all non-debug builds but plain, which explicitly should not have any compile flags
  • Use cc.get_supported_arguments, so it becomes more obvious to the user which flags are set during compilation
  • Do not set any compiler flags if the plain buildtype is selected
Edited by Robert Mader

Merge request reports