[Interest] Disable -Og when configuring as developer build
Allan Sandfeld Jensen
kde at carewolf.com
Fri Feb 15 15:57:24 CET 2019
On Freitag, 15. Februar 2019 15:00:36 CET Konstantin Shegunov wrote:
> Hello,
> 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?
>
Btw. If(when) the output isn't debug friendly, it is really a gcc bug, and
should be reported to them if you have the time, and want it to improve in the
future.
Best regards
'Allan
More information about the Interest
mailing list