Boost logo

Boost-Build :

From: Prashant Thakre (prashant.thakre_at_[hidden])
Date: 2006-12-07 12:52:55


David Abrahams <dave <at> boost-consulting.com> writes:
> > The following workaround gets around this by explicitly exiting if link
failed:
> >
> > actions link bind DEF_FILE
> > {
> > $(.LD) $(LINKFLAGS) /out:"$(<[1]:W)" /LIBPATH:"$(LINKPATH:W)"
$(OPTIONS)
> <at> " <at> ($(<[1]:W).rsp:E=$(nl)"$(>)" $(nl)$(LIBRARIES_MENTIONED_BY_FILE)
$(nl)$(LIBRARIES)
> $(nl)"$(LIBRARY_OPTION)$(FINDLIBS_ST:S=.lib)"
$(nl)"$(LIBRARY_OPTION)$(FINDLIBS_SA:S=.lib)")"
> > if errorlevel 1 exit %errorlevel%
> > if exist "$(<[1]).manifest" (
> > $(.MT) -manifest "$(<[1]).manifest" "-outputresource:$(<[1]);1"
> > )
> > }
>
> 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?
>

Could you please try
IF %ERRORLEVEL% NEQ 0 ... instead of
if errorlevel 1 ...

--
regards,
Prashant Thakre

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