Debug buildtype broken

Thiago Macieira thiago at kde.org
Thu Sep 20 08:47:30 CEST 2007


Jaison Lee wrote:
>> Some flags suggestions:
>> Release: -O2
>> RelWithDebugInfo: -g -O2
>> optimised-but-debuggable: -g -O2 -fno-inline -fno-schedule-insns
>> -fno-reorder-blocks Debug: -g -O0
>> Debugfull: -g3 -O0
>
>Related to this, absolutely nothing I do seems to remove the kDebug()
>lines. Compiling in Release mode does not do it, nor does manually
>adding KDE_NO_DEBUG_INFO to CMAKE_CXX_FLAGS_RELEASE. When compiling in
>Release or MinSizeRel the kDebug() lines should not be included,
>however that can be accomplished.

Oh, right. This is probably being inherited from the Qt configuration. Is 
your Qt compiled in debugging mode?

Debug mode has to have: -DQT_DEBUG
Release mode has to have: -DQT_NO_DEBUG

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070920/da5f33de/attachment.pgp 


More information about the Kde-buildsystem mailing list