Boost logo

Boost-Build :

Subject: Re: [Boost-build] PCH support still broken in Trunk?
From: John Maddock (john_at_[hidden])
Date: 2009-03-03 07:09:51


> Is it really the case that there should be no whitespace between
> -use-pch and the name of the PCH file.

It seems not to matter either way: the issue was that the original code was
generating an invalid:

-use-pch "

argument when pch was off (note the single quote).

> Also, why explicit "rm"? The target should be removed if compilation
> of PCH fails.

Nod, it's a hack, but the intel compiler doesn't over-write existing pch
files for some strange reason, so if you do a "bjam -a" (which I was doing a
lot of while testing!), then you end up with:

filename.pchi
filename$1.pchi
filename$2.pchi

etc.

I assume that the compiler uses whichever is the most recent (I don't know
for sure though), but they sure do take up a lot of HD space!

John.


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