Home Dashboard Directory Help
Search

MSBuild for C++ code is 30-50% slower than it needs to be by Jalf1


Status: 

Active


3
0
Sign in
to vote
Type: Bug
ID: 800760
Opened: 9/15/2013 1:05:29 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

We have a large'ish C++ code base of some 180 projects in a single solution. It uses Qt heavily, and therefore has a number of calls to external tools, such as moc.

We use CMake, and normally use it to output .vcxproj files to build with MSBuild (on the command line or from Visual Studio)
However, recently, we have been experimenting with the build system Ninja instead, and if we generate a Ninja build file from CMake instead, a build takes 30-50% less time. Total build time on my machine goes from 20 to 13 minutes, and on our build server it goes from 8 to 4 minutes.

Ninja still calls cl.exe and the rest of the Visual Studio toolchain, and compiles with the same flags -- the *only* difference is that it is not MSBuild driving the build.
Details
Sign in to post a comment.
Posted by Microsoft on 9/17/2013 at 4:39 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Microsoft on 9/15/2013 at 7:52 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.