Boost logo

Boost-Build :

From: Peters, Richard (richard.peters_at_[hidden])
Date: 2006-03-15 04:16:09


Hello,

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 run bjam -q, so bjam must quit on the first error reported. When the
idl compiler returns an error, the touch commands are still executed,
and bjam thinks that the commands succeeded correctly, so it continues
building the next target. If I change the order of commands:

actions compile.idl
{
    $(TOUCH_FILE) "$(<[4]:W)"
    $(TOUCH_FILE) "$(<[5]:W)"
    $(.IDL) <...>
}

then bjam -q detects correctly that the idl did not compile
successfully, so it stops.

I have no idea how this should be solved.

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