Boost logo

Boost-Build :

Subject: Re: [Boost-build] Having problem with building with 1.42
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2010-02-18 02:25:06


Rene Rivera wrote:
> Johan Nilsson wrote:
>> Avi Bahra wrote:
>>> When I switch back, to 1.39/1.40 there are no problems.
>>>
>>> This is what my boost-build.jam look like:
>>> --------------------------------------------------------------------------------
>>>
>>> BOOST_BUILD = [ MATCH --boost-build=(.*) : $(ARGV) ] ;
>>> BOOST_BUILD ?= $(BOOST_ROOT)/tools/build/v2 ;
>>> boost-build $(BOOST_BUILD) ;
>>
>> Does the above actually work, or are you leaving something out? I
>> don't know if boost-build.jam is subject to some special treatment
>> but you'd normally need to e.g.:
>>
>> local ARGV = [ modules.peek : ARGV ] ;
>> local BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ; # or use
>> "os.environ" Sorry, that's all I can see. Haven't used bjam/boost.build
>> more
>> recent than 1.40 a lot, so I haven't seen any similar problems.
>
> boost-build.jam operates on the global space, since it's being loaded
> way before BBv2 is loaded. Because it's the one that loads BBv2 ;-)

Aha. Special treatment indeed (or perhaps about the only thing _without_
special treatment :).

/ Johan


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