Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-01-06 11:20:21


On Saturday 06 January 2007 18:27, Jaroslav Gresula wrote:
> Vladimir Prus wrote:
> > On Friday 29 December 2006 02:51, Jaroslav Gresula wrote:
> >> Is it possible to rebuild only a particular target but not targets it is
> >> dependent on?
> >
> >>From command line? No.
> >
> > In certainly possible on the lower levels. Feel like implementing new
> > options like --shallow-rebuild?
>
> Unfortunately, my knowledge of Boost.Build is very shallow.

You don't need to have deep knowledge of Boost.Build. I'm pretty sure that if
you go to build-system.jam, find the block that reads:

        actual-targets = ;
        for t in $(virtual-targets)
        {
            actual-targets += [ $(t).actualize ] ;
        }
        NOTFILE all ;
        DEPENDS all : $(actual-targets) ;

And add

        ALWAYS : $(actual-targets) ;

then Boost.Build will start to always rebuild top-level targets. You'd
only need to conditionalize this logic on some option passed to Boost.Build,
and build-system.jam has several example of checking for option -- grep
for "--version".

- Volodya

>
> Jarda.
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
>


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