Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-12-12 04:33:25


Vladimir Prus wrote:
> On Wednesday 07 December 2005 12:29, Reece Dunn wrote:
>
>>> So, just wrap the body of "pch-generator.run" in
>>>
>>> if $(name)
>>> {
>>> }
>>>
>>> This will make sure the generator is only run inside "pch" main target.
>>> I can commit the change any time, but I have no idea how to test for the
>>> problem.
>> I tried this, along with the removal of [ cast ... ] to the PCH stuff. I
>> also needed to add a generator for H and one for HPP to allow stdafx.h or
>> pch.hpp as your header. This worked fine except for MC which gave an
>> ambiguity error:
>
> Drop me the testcase, and I'll take a look.

It is in the mc test case that I posted previously.

You also need to change the PCH support in msvc.jam to:

generators.register [ new pch-generator msvc.compile.pch : H : OBJ PCH :
<toolset>msvc ] ;
generators.register [ new pch-generator msvc.compile.pch : HPP : OBJ PCH
: <toolset>msvc ] ;

to allow for stdafx.h or pch.hpp to be used as pre-compiled headers.

NOTE: The line endings in pch.jam appear to be messed up :(.

- Reece


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