Boost logo

Boost-Build :

From: Nicolas Fleury (nidoizo_at_[hidden])
Date: 2006-01-20 12:40:20


David Abrahams wrote:
>>Hi everyone,
>>
>>Is there any equivalent to -g (build more recent file instead of first
>>one met in jamfile)
>
> I don't understand what that means. Can you give an example?

 From the doc of Perforce Jam:
-g: Build targets with the newest sources first, rather than in the
order of appearance in the Jambase/Jamfiles.

and:
The -g flag reorders builds so that targets with newest sources are
built first. Normally, they are built in the order of appearance in the
Jamfiles.

I don't know how Boost.Jam behaves. I assumed it was forked from
Perforce Jam before introduction of -g flag.

This flag can be useful if you're modifying a .hpp/.cpp pair. Since the
.cpp is more recent than other .cpp depending on the same .hpp, it is
the one that will be compiled first, instead of order of appearance in
jamfiles.

It is an interesting setting avoiding the necessity to specify an .obj
target manually (and particularly useful since Visual Studio makefile
projects don't allow configuration of compilation of a single source file).

Regards,
Nicolas


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