Boost logo

Boost-Build :

From: Bojan Resnik (resnikb_at_[hidden])
Date: 2006-10-08 04:25:23


> > I also ran the pch.py test with the command lines
> > pch.py msvc-6.0
> > pch.py msvc-7.1
> > pch.py msvc-8.0
> > and they completed fine, after I patched pch.py to use #include
> > "pch.hpp" instead of #include <pch.hpp>. The patch is also attached.
>
> Can you check if changing:
>
> cpp-pch pch : pch.hpp : <toolset>msvc:<source>pch.cpp ;
>
> to
>
> cpp-pch pch : pch.hpp : <toolset>msvc:<source>pch.cpp <include>. ;
>
> instead of changing the form of includes fixes the problem?

  Indeed, this does fix the problem. Does this mean that pch still
does not inherit the requirements of its parent target (in this case
hello executable)?

  There is still the problem with pch that sometimes the source that
creates the precompiled header file is compiled with incorrect
commands (please see
http://article.gmane.org/gmane.comp.lib.boost.build/14061).
  Franz Schnyder suggested a patch to msvc.jam that fixes the problem,
and I am attaching a slighltly modified version of his patch that is
made against the current CVS head.

-- 
Bojan Resnik



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