[Interest] Disable -Og when configuring as developer build

Mitch Curtis mitch.curtis at qt.io
Fri Feb 15 15:05:40 CET 2019


> -----Original Message-----
> From: Interest <interest-bounces at qt-project.org> On Behalf Of Konstantin
> Shegunov
> Sent: Friday, 15 February 2019 3:01 PM
> To: Interests Qt <Interest at qt-project.org>
> Subject: [Interest] Disable -Og when configuring as developer build
> 
> 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?
> 
> Thanks!

Is it the -optimize-debug configure flag?


More information about the Interest mailing list