[Interest] Disable -Og when configuring as developer build
Allan Sandfeld Jensen
kde at carewolf.com
Fri Feb 15 15:52:16 CET 2019
On Freitag, 15. Februar 2019 15:00:36 CET Konstantin Shegunov wrote:
> That flag's been a pain for me to debug the Qt codebase for a while now,
> I'm really annoyed that configure generates it when using -developer-build.
> Long story short it prevents me to do step-by-step with gdb as the compiler
> reorders the code as it sees fit (no clue why). I remember I had found a
> commit from about 2-3 years ago which introduced it, and even found how to
> disable it, but for the life of me I couldn't find it again during my most
> recent searches.
> How can I disable the debug optimizations, and I mean completely?
You disable it with -no-optimize-debug on the configure line
More information about the Interest