Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-04-24 04:49:31


On Thursday 24 April 2008 12:30:31 Dag Henriksson wrote:
> Hello!
>
> gcc has the ability to have the same header file precompiled for different targets (for example debug and release), and put in a directory, named like precompiled.h.gch. The compiler will automatically find a suitable .gch file in that directory when looking for the .gch file.
>
> Is it possible to use that feature with cpp-pch in boost.build? If so, how? If not, how should that situation be handled? Now, if there exists a debug version of the .gch file and I compile for release, there will be a warning that the .gch file is compiled with different settings, and the precompiled file will not be used.

Should not the PCH end up in directory like "bin/debug" or "bin/release" and consequence used only when
building the right variant, when using Boost.Build? Is this not happening, or there's some other issue?

- 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