Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2006-12-08 20:26:18


Ilya Sokolov <fal_delivery_at_[hidden]> writes:

> David Abrahams wrote:
>> Misha Bergal <mbergal_at_[hidden]> writes:
>>
>>
>>>>Well, although I applied this patch, it doesn't seem to work at all.
>>>>I added an ECHO after the errorlevel test and it got executed despite
>>>>the fatal link error. Can you come up with a patch that works?
>>>>
>>>
>>>Hmm, I don't see this on my system. Are sure that it gets _executed_, not just displayed.
>>
>>
>> All I can say is that I was seeing FATAL LINK ERROR messages but no
>> instances of "...failed" (which marks all failures detected by bjam)
>> in the output. Have you tested the patch and verified that it does
>> what you expect?
>>
> David, did you see post from Prashant Thakre?
>
> >Could you please try
> >IF %ERRORLEVEL% NEQ 0 ... instead of
> >if errorlevel 1 ...

Yes, I saw that.

> this is from win help:
>
> if errorlevel number
> Specifies a true condition only if the previous program run by Cmd.exe
> returned an exit code equal to or greater than number.
> ^^^^^^^^^^^^^^^^^^^

I know that. I guess the actual exit code was negative? OK, I'll
apply Phrashant's fix. I don't know if I'll be able to test it soon,
though. Worse, the #@&^ sourceforge CVS seems to be broken again, so
I'm not even sure when I can check it in :(

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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