Search code examples
c++compilationqt5

How to speed up C++ compilation


do you have any tips to really speed up a large C++ source code?

I compiled QT5 with last visual studio 2013 compiler, this took at least 3 hours with intel quad core 3.2GHz, 8GB memory and SSD drive.

What solutions do I have if I want to do this in 30 minutes?


Solution

    • Use a fast SSD setup. Or even create a ram disk, if suitable on your system.

    • Project -> Properties -> Configuration Properties -> C/C++ -> General -> Multi-processor Compilation: Yes (/MP)

    • Tools -> Options -> Projects and Solutions -> Build and Run: and set the maximum number of parallel project builds. (already set to 8 on my system, probably determined on first run of VS2013)