Boost logo

Boost-Build :

Subject: Re: [Boost-build] generators retry on failier
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-06-01 11:50:04


AMDG

On 06/01/2013 08:28 AM, George Georgiev wrote:
> Hi,
>
> I use boost build system for my c++ project in the context of Visual Studio
> IDE where I run b2 with make projects. This gives me some extras that the
> VS IDE offers with the multiplatform and other nice features coming from
> boost build.
>
> The problem is that when I cancel a build in progress from VS IDE it kills
> all current processes and this very often leaves obj and/or lib files in a
> invalid states. When I start build again the generators just fail stating
> that ... and I need to manually remove the corrupted artifacts.
>

I don't think that there's any easy way to detect
this situation once the corrupt object files are
created. Boost.Build handles SIGINT, but it sounds
like the IDE is using a different mechanism to
kill the process.

> I would like to enhance the generators to detect such cases and to delete
> the corrupted targets and retry. ... or just to enable such feature if it
> already exists.
>
> I would prefer if there is solution without the need of writing my own
> generators, but this is an option too.
>
> I will appreciate whatever pointers on the topic.
>

In Christ,
Steven Watanabe


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