Boost logo

Boost-Build :

Subject: Re: [Boost-build] Newbie: controlling build order
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-08-19 03:39:23


Avi Bahra wrote:

> > Is there any way to control the bjam build order ?
>>
>> In my Jamroot.jam I have:
>>
>> build-project Base ;
>> build-project Server ;
>> build-project Client ;
>>
>> I assume that build order was Base, Server,Client.
>> but bjam does not follow this!
> ------------------------------------------------------------------------------
>>there is no specific order of independent targets. Why do you
>>want such ordering?
>>
>>- Volodya
>
> You are right they are independent in term of compile/link. But I have
> test dependency. Which requires that Server be built before the Client.

What is 'test dependency' and why can you not express it using the regular
dependency mechanisms, including the <dependency> feature?

> My request was that where two projects are completely independent, then
> bjam must arbitrarily pick one to build first. In this case it should give
> preference to the order in the jam file ?

Well, in fact, no dependency checking is done of project level. Projects are
just convenience containers. And when we have a pile of targets, causing
independent targets to be built according to the other their containing
projects were listed is additional work. I still suggest you set additional
dependencies as necessary.

- Volodya


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