|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-10-16 02:35:10
On Monday 16 October 2006 08:29, Alex Besogonov wrote:
> Vladimir Prus wrote:
> > #if defined(BOOST_BUILD_PCH_ENABLED)
> > #include "pch.h"
> > #endif
> > Then, if toolset lacks PCH support, the pch header won't be included at
> > all. Thoughts?
>
> It won't work in MSVS. PCH header must be the first preprocessor
> directive in file.
Drats! But can you then wrap the entire "pch.hpp" content in #if
defined(BOOST_BUILD_PCH_ENABLED)?
That way, when PCH is disabled, the pch.hpp will be still included, but it
won't have negative effect on compilation speed?
- Volodya
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