|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-08-02 02:28:29
Markus Schöpflin wrote:
> > Suppose we can specify pch file in sources for every exe. In that case
> > it will be used by default
> > for each compiled file. It would be possible to turn PCH for a specific
>
> ------------------------------------------------------^ off(?)
yes, "off"
> > file using the syntax we use
> > for source properties, i.e.
> >
> > exe a : a.cpp b.cpp/<pch>off my_project_pch ;
> >
> > Here, a.cpp will be compiled with pch, and b.cpp without. Would such
> > arrangement be OK?
>
> I think so. The way I usually use PCH is to enable it for the whole
> project and disable it for some individual files.
BTW, what's is the reason for disabling pch for a file? Bugs and performance?
> Would it be possible to use the same PCH for more than one main target?
>
> precompiled_headers my_project_pch : stdafx.cpp ;
> exe a : a.cpp my_project_pch ;
> exe b : b.cpp my_project_pch ;
>
> The compiler does support it but I have to admit I never used it so far.
Nothing prevents it, AFAIKT.
- 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