tracker and tracker-miners are applying some things in release build types only, but we use plain type out of necessity (release type appends -O2 style stuff or something).
* -DG_DISABLE_CAST_CHECKS is added to CFLAGS for release builds
* TRACKER_DEBUG debug support is not enabled in release builds, but are force-enabled on plain builds
TRACKER_DEBUG should be enabled for us, so that our users can provide better debug information to upstream or us when something is going on. It's a bit of a mess that upstream is still figuring out. Currently it looks like it's a candidate for a dedicated meson_option instead, which is default enabled and disabling is strongly discouraged.
So we are fine with that being forced on us, because that's what we should have.
However due to this, -DG_DISABLE_CAST_CHECKS isn't passed, which means a bit slower code. It's not worth revbumping for this, so hence this ticket to remember to add this via append-cflags upon next proper full bump instead. pango has an example of this pattern.