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 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.