Boost logo

Boost-Build :

Subject: Re: [Boost-build] Very slow Visual Studio 2012 builds
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-11-04 15:50:08


AMDG

On 11/04/2013 12:05 PM, Juraj Ivančić wrote:
> On 30.9.2013. 2:03, Steven Watanabe wrote:
>
>> On 09/27/2013 07:30 AM, Nogradi, Chris wrote:
>>> We have been investigating switching from using Visual Studio
>>> 2005 to Visual Studio 2012 for our development using boost.build.
>>> The issue we are seeing is that a build that normally takes 2
>>> minutes with VS 2005, now takes twice as long with VS 2012. I
>>> did some investigation and discovered that the issue is with bb2's
>>> per compiler/linker action usage of vcvarsall.bat. In VS 2005,
>>> this batch file only sets up variables and paths. In VS 2012,
>>> the same thing is done but there are windows registry queries
>>> that apparently are very time consuming and result in adding 2
>>> additional minutes to the overall build. I plan to attempt to
>>> address this problem but wanted some advice from experts to ensure
>>> that I approach it the right way. Here are the solutions I have
>>> thought of so far:
>
> I ran into this today too. This behavior started with Visual Studio
> 2010. Attached is my patch for msvc.jam based on Stevens suggestion. I
> successfully built boost 1.54 (--build-type=complete) without errors
> using toolsets msvc 9.0, 10.0 and 11.0. I'd be grateful if someone could
> review and/or apply it.
>

- If you kept the ">nul" when calling the setup
  script, there would be no need to use __DELIMITER__...
  to identify the start of the output you want.
- I think it would be better to replace setup-$(c)
  with the environment setting commands. That
  would avoid having to edit every action and
  all the flags.

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