[Build-common-hackers] Running scons twice with cdbs
peter_e at gmx.net
Sun Oct 31 14:19:58 UTC 2010
On fre, 2010-10-29 at 16:18 +0200, Jonas Smedegaard wrote:
> On Fri, Oct 29, 2010 at 03:05:29PM +0200, Adrian Knoth wrote:
> >does cdbs support [building lib twice, one time with DEBUG=0 and a
> >secondtime with DEBUG=1]? Perfect solution would be to have both libs
> >in the same package (libffado2), but if need be, I could live with
> >libffado-dbg (I guess that's what cdbs clearly supports, given that we
> >build ardour-i686 and ardour from the same source).
> There are two appraches: *-dbg package and flavors.
> I believe CDBS more or less automagically enables debug when the target
> package name ends in -dbg. I haven't played with that myself, however,
> as I still do not fully understand what it implies.
> The other approach, flavors, is a new one, not supported in all
> snippets, and particularly not in the scons.mk snippet.
The -dbg packages only store debug symbols; that's pretty automatic, as
you say. What Adrian describes is a variant build, which would properly
be addressed by the flavors feature.
On a different level, disabling the debug mode is perhaps not the proper
answer to an assertion failure. Either the assertion failure is valid,
then it should be addressed, or it is not valid, then it should be
removed, or perhaps replaced by a proper error message.
More information about the Build-common-hackers