Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-09-06 02:29:47


David Abrahams wrote:

> Vladimir Prus <ghost_at_[hidden]> writes:
>
>> Hi Toon,
>>> Whenever I use bjam on windows saying that path.join( elements + ) is
>>> called with an empty argument list from within make-NT in path.jam.
>>>
>>> Now I have seen that make-UNIX first tests if the argument is not empty
>>> before continuing, could I add the same test to make-NT ?
>>>
>>> (I have reported this while Vladimir was on vacation but thought to post
>>> it again because Vladimir probably missed it)
>>
>> Thanks for the reminder. Looking at the stack trace in your original
>> email, I think the problem is somewhere else -- we should not be calling
>> path.make with empty string.
>
> Maybe you should change the signature of make-Unix so that you are
> more likely to see the problem.

Changing the signature won't help, since the rule is called with empty
string as the only argument, not with zero arguments ;-) That is,

l = "" ;
make-UNIX $(l) ;

won't be caught by signature check. But I've modified the function body to
check for empty arguments and committed the change.

- 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