Boost logo

Boost-Build :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-08-02 02:54:12


Vladimir Prus wrote:
>
> Markus Schöpflin wrote:
>

[snip]

> > 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?
>

The first line of your source code has to read

#include "pch_header_file.h"

if you want to use precompiled headers and sometimes I simply can't or
don't want to modify an exisiting source file to include this line.

As your were asking for performance, a question comes to my mind.
Will you be able to do batch builds in V2? Which means if two or
more source files end up with the exact same command line for
compilation they are all passed to the compiler in one go.

> > 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.

Great.

>
> - Volodya
>

Markus

 


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