Boost logo

Boost-Build :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2006-04-14 15:49:33


João Abecasis wrote:
> Rene Rivera wrote:
>> João Abecasis wrote:
>>> Hi everyone!
>>>
>>> Playing around with BB and bjam I came across and odd behaviour with
>>> the -f option. This option allows one to override the built-in
>>> Jambase file with a custom one.
>>>
>>> When I run 'bjam -ffile', that is without intervening spaces, as
>>> documented in --help-usage, bjam will pick file and everything runs
>>> smoothly.
>>>
>>> If, however, I run it as 'bjam -f file', with a space between, bjam
>>> will still pick up the file argument appropriately, only this will
>>> confuse boost-build into believing file is actually a target to
>>> build, thus putting aside other targets:
>>>
>>> > bjam
>>> ...found 187 targets...
>>> > bjam -f Jambase
>>> ...found 2 targets...
>>>
>>> Is this intended?
>>
>> Hm, no. It should not consider that name a target. Could you post a
>> bug to the SF tracker about this, for future TODO and reference.
>> Assign it to me :-)
>
> Would a working patch help? (see attached)

Of course :-)

> Is this the right approach and can it be applied to CVS?

Hm, I thought the problem was in bjam and not boost.build. So I'm not
sure about the patch itself. But there are other options that take an
extra argument that would have the same problem if they are not being
handled at the boost.build level.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

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