Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2002-11-13 10:38:52


Rene Rivera <grafik666_at_[hidden]> writes:

> [2002-11-12] Vladimir Prus wrote:
>
>>
>>Rene, this checkin of yours introduces a regression:
>>
>>2002-08-09 09:14 grafik
>>
>> * make1.c: This is a reworking of make1 to be non-recursive. Pros:
>> 1) Removes bug in stack limited platforms of blowing the stack
>> limits. Like win32.tLiek win32. 2) Slightly faster (10% or so).
>> Cons: 1) More heap usage.
>>
>> The code is from Sta
>>
>>Compare this outputs:
>>
>>bash-2.05a$ /tmp/bjam -d0 run-add
>>run-program run-add
>>no errors detected
>>You have mail in /var/mail/ghost
>>bash-2.05a$ /tmp/bjam -d0 run-add
>>no errors detected
>>
>>The extra line in first output should not be there.
>>
>>The offending diff hunk is:
>>
>>@@ -286,9 +436,8 @@
>> /* from all the actions then report our completion to all the */
>> /* parents. */
>>
>>- if( cmd && t->status == EXEC_CMD_OK )
>>+ if( cmd && pState->t->status == EXEC_CMD_OK )
>> {
>>- if( DEBUG_MAKE )
>> if( DEBUG_MAKEQ || ! ( cmd->rule->actions->flags &
> RULE_QUIETLY ) )
>> {
>> printf( "%s ", cmd->rule->name );
>>
>>I believe this condition should be
>>
>> if (DEBUG_MAKEQ || ! (cmd->rule->actions->flags & RULE_QUIETLY) &&
> DEBUG_MAKE )
>>
>>but not sure. What do you think?
>
> If the precedence makes it:

I don't think Jam has precedence. Parenthesize to disambiguate
>
> ( DEBUG_MAKEQ || ( ( ! (cmd->rule->actions->flags & RULE_QUIETLY) ) &&
missing spaces----------------^---------------------------------------^
> DEBUG_MAKE ) ) )

-- 
David Abrahams
dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
 

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