|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-03-15 04:37:44
Hi Peters,
> 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.
- 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