Skip to content

Unity (Jumbo) build

Cristian Adam requested to merge cristianadam/cmake:unity-build into master

Generators supported:

  • Ninja
  • Makefiles
  • Visual Studio
  • XCode

Tested on Windows 10 with the SpeedCrunch project (only main executable, not the tests) with a batch size of 5 files. For each case I tested three times.

With MinGW 8.1 the median compilation time went from 25.215s to 17.495s. That's a 30.61% speed increase. With Visual C++ 2017 the median compilation time went from 23.526s to 12.097s. That's a 48.52% speed increase.

Fixes #19526 (closed).

Edited by Cristian Adam

Merge request reports