Boost logo

Boost :

Subject: Re: [boost] How to make tests building faster?
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-12-20 13:55:51

> Another idea would be to make better usage of pre-compiled
> headers. These are supported by both gcc and msvc. Again
> would require non-trivial changes in build/test infrastructure.

Boost.Build supports precompiled headers already: Boost.Math uses it to
significantly speed up compile times.

The only drawback is if you change one header, then all the tests get
rebuilt 'cos the precompiled header pulls in the lot :-(

Another option, if the same template instances are used in multiple tests,
would be to move template instantiation into separate files, although that's
not easy to achieve portably unfortunately.

HTH, John.

Boost list run by bdawes at, gregod at, cpdaniel at, john at