Boost logo

Boost-Build :

From: Ilya Sokolov (fal_delivery_at_[hidden])
Date: 2006-10-07 08:25:53


Vladimir Prus wrote:
> I've just committed a large change to PCH handling. The bulk of this change
> was done by Ilya Sokolov and adds PCH support for the gcc toolset. Also, now
> instead of 'pch' rule, there are 'cpp-pch' and 'c-pch' rules -- which
> explicitly indicate the language of the header.
>
> I've also took the change to address the need to use 'cast pchheader' -- now
> this should not be required, and won't work anyway.
>
> I've also committed automated test for PCH functionality, which works on gcc.
>
> I was no able to test with msvc, although I carefully looked at command lines,
> and they look correct. I'd appreciate if somebody test this on msvc, and try
> running the 'pch.py' test as well.

It seems that pch=off does not work )-:

>bjam gcc pch=off

in builtin.jam: dummy-generator (this is my debug output)
warn: Unable to construct ./pch
in builtin.jam: dummy-generator (this is my debug output)
in gcc.jam: run-pch (this is my debug output, ERROR!)
...found 10 targets...
...updating 5 targets...
MkDir1 bin\gcc-mingw
MkDir1 bin\gcc-mingw\debug
MkDir1 bin\gcc-mingw\debug\pch-off
gcc.compile.c++ bin\gcc-mingw\debug\pch-off\hello_world.o
gcc.link bin\gcc-mingw\debug\pch-off\hello_world.exe
...updated 5 targets...


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