Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-10-21 12:31:31


On Monday 16 October 2006 19:19, Andrei Melnikov wrote:
> On 14/10/06, Vladimir Prus <ghost_at_[hidden]> wrote:
> > On Sunday 08 October 2006 00:04, Vladimir Prus wrote:
> > > Hi,
> > > on gcc, to create a PCH one needs a header. On msvc, one needs a header
> > > and a .cpp file. This can be expressed like this:
> > >
> > > pch boost : boost.hpp : <toolset>msvc:<source>boost.cpp ;
> > >
> > > which is a bit verbose. How about allowing the user to write:
> > >
> > > pch boost : boost.hpp boost.cpp ;
> > >
> > > and simply ignore .cpp when it's not needed?
> >
> > Getting no comments, I've implement this.
>
> The cpp file is just one #include "boost.hpp" line. Can we generate it
> using the mechanism designed for RSP files?

I think I have it working. One question -- is there any reason to ever want
explicitly write the .cpp file? If yes, I'll allow both specifying file
explicitly or generating it. If no, I'll disallow explicit file.

- 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