Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-05-07 01:45:25

Hi Andre,
sorry it took me that long to reply...

Andre Hentz wrote:

> Here's what I'd like to achieve: When checking which target should be
> rebuilt, BBv2 would use the first file it can find, say, along
> $(SEARCHPATH). If the file needs to be rebuilt, it would be put into
> Is there any kind of mechanism in place for doing something like that? Is
> it something I should put some effort into?

I don't think this is possible with current bjam core. For generated targets,
you have LOCATE variable, and only first elements affects binding. In order
to achive the behaviour you need it possible to use some tricks. E.g. when
make0 functions calls 'search' (around make.c:267), it passes a special flag
saying "look through all "LOCATE" elements). Later, after it determines that
the targets should be updated, it would call 'search' again, this time using
only first LOCATE element.

I believe this is possible, however, this would require a bit of time and a
bit of care and also a bunch of tests so that we don't break this behaviour
next time we mess with 'make*.c' files. So, yes, this is something which can
be implemented only if you put some effort into. Of course, if you decide to
try it, I'm here for any help.

- Volodya


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at