Boost logo

Boost-Build :

From: Bojan Resnik (resnikb_at_[hidden])
Date: 2006-10-13 02:43:13

> > There is still the problem with pch that sometimes the source that
> > creates the precompiled header file is compiled with incorrect
> > commands (please see
> >
> > 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.

  I experimented a bit with this, and I stil don't know why this
happens. As far as I can tell, the compile.c++.pch rule always gets
PCH as the first target and OBJ as the second target, and always sets
CC_RSPLINE on the PCH. Suprisingly for me, this works for the test
case in, where CC_RSPLINE is correct inside compile-c-c++-pch
action. However, in my own projects, CC_RSPLINE is empty inside the
action, unless I set it on the OBJ target. The test case, however,
does not work then. Franc Schnyder's patch sets CC_RSPLINE on both
targets, which seems to work in all cases.

Bojan Resnik

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at