Boost logo

Boost-Build :

Subject: Re: [Boost-build] Defining variant with toolset version
From: Matt Chambers (matthew.chambers_at_[hidden])
Date: 2009-09-08 09:15:11


Hi Johan,

Johan Larsson wrote:
> So I tried defining a set of variants, like so:
> variant v0 : <debug-symbols>on <optimization>space <inlining>off
> <threading>multi <toolset>gcc ;
> variant v1 : v0 : <toolset>gcc-A ;
> variant v2 : v0 : <toolset>gcc-B ;
> variant v3 : v2 : ;
>
> The problem:
> When I try to build a specific variant, say v1, it builds not only for
> gcc-A, but also gcc-B. Likewise, v2 and v3 builds with both toolsets.
> What I want is for v1 to only invoke gcc-A, v2 only to invoke gcc-B, etc.
>
> Is there a good way to achieve the desired behaviour?

Is there a particular reason you want to do this with variants instead
of defining your own custom composite feature? I would expect that you'd
want to keep the release/debug/profiling concept orthogonal to the
toolset concept. It also looks like you're composing v1-2 on top of v0,
so v1 has both gcc and gcc-A, v2 has both gcc and gcc-B, and v0 and v3
just have gcc. So I suspect that's why it's building with multiple toolsets.

-Matt


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk