Boost logo

Boost-Build :

From: c_andy_martin (c_andy_martin_at_[hidden])
Date: 2004-11-17 10:17:35


> After a long investigation, and much hair pulling, I found the
"problem"
> and hacked a solution.
Wow! Thanks!

> The problem is a basic issue with the SEARCH capability of Jam. Simply
> put it makes no distinction between files and directories. Which means
> that it will match a directory to a header without question.
> Unfortunately this is something that is not easy to fix in Jam itself.
That would make sense from the behavior observed. So is it really that
hard to patch bjam? Or is it some fundamental problem with the
language? (Would the Jam grammar now be different, or the semantics of
the SEARCH keyword be different -- I'm totally unfamiliar with the
underlying Jam language).

> Attached is a fix which does the search for headers "manually", and
> hence can check and ignore directory matches. (replace the files
from 1.32)
Sounds good, as loon as it works ;-).

> PS. If BBv2 uses SEARCH for header scanning it likely has the same
issue.
I can confirm that BBv2 exhibts the exact same behavior, so it likely
uses the SEARCH mechanism as well. I initally switched to BBv2 to try
and eliminate the behavior, which didn't help.

Again, many thanks,
-Andy

 


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