Boost logo

Boost-Build :

From: Peters, Richard (richard.peters_at_[hidden])
Date: 2006-03-15 07:01:55


> > I noticed a problem with executing actions where one of the commands
> > exits with a failure.
> > I'm running on Windows 2000, Boost.Build V2 (Milestone 10) from CVS,
> > Boost.Jam 03.1.12, and using MS VC, trying to compile an idl file.
> > This is the action used:
> >
> > actions compile.idl
> > {
> > $(.IDL) <...>
> > $(TOUCH_FILE) "$(<[4]:W)"
> > $(TOUCH_FILE) "$(<[5]:W)"
> > }
>
>
> I believe that bjam executes multi-line commands by writing a
> bat file and
> then executing it. Return status of bat file is the return
> status of the last
> command, so in this case, it will be return status of the
> second touch
> command. You can use this:
>
> $(.IDL) <...> &&
> $(TOUCH_FILE) "$(<[4]:W)" &&
> $(TOUCH_FILE) "$(<[5]:W)"
>
> to achieve the effect you want.

If this is the proper solution, shouldn't this be used all over the
place in the standard tools? Many actions exist with multiple commands.
Btw, the quoted action is from msvc.jam in build/v2/tools.
Are you sure this is the right solution? I'd expect a bit more support
from bjam solving this problem, because it's a very generic problem.

Best regards,

Richard Peters

This message and attachment(s) are intended solely for the use of the addressee and may contain information that is privileged, confidential or otherwise exempt from disclosure under applicable law.
If you are not the intended recipient or agent thereof responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify the sender immediately by telephone and with a "reply" message.
Thank you for your cooperation.


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