Boost logo

Boost-Build :

Subject: Re: [Boost-build] Very slow Visual Studio 2012 builds
From: Juraj Ivanèiæ (juraj.ivancic_at_[hidden])
Date: 2014-03-20 15:47:20


On 20.3.2014. 18:53, Steven Watanabe wrote:

> I just have one problem with your patch.
>
> msvc.manifest[.dll] is broken when
> running a cygwin built b2, because
> it skips seting the environment.

Ugh. Right. The reason why I initially separated .MT into two variables
is because cmd.exe sometimes decided to exit with an error when running

if exist ... (
     $(.MT) whatever
)

in case .MT expanded into multiple lines.

My attempt at resolving this was to do:

$(.MT.SETUP)

before the 'if', and make sure that $(.MT) is a one-liner. This seems to
work but is quite ugly (and I broke cygwin in the process). However,
Jurko suggested a better way to do this. The following always succeeds:

if not exist ... goto :skip
$(.MT) whatever
:skip

With this I can once again use multi-line .MT, which will undo the
introduced cygwin bjam issue as well.

I'll update the pull request as soon as I verify that boost builds
correctly in all variants, with both native and cygwin bjam, in hope to
avoid any additional 'brown paper bag' bug fixes.


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