$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: ghost_at_[hidden]
Date: 2008-03-06 01:57:28
Author: vladimir_prus
Date: 2008-03-06 01:57:27 EST (Thu, 06 Mar 2008)
New Revision: 43527
URL: http://svn.boost.org/trac/boost/changeset/43527
Log:
Arrange for HPP source to be scanned for #includes, too.
This fixes PCH not being rebuild when some other headers
included from HPP being compiled change.
Thanks to Pierre-Luc Neron for the bug report.
Text files modified: 
   trunk/tools/build/v2/tools/builtin.jam |     9 +++++++++                               
   1 files changed, 9 insertions(+), 0 deletions(-)
Modified: trunk/tools/build/v2/tools/builtin.jam
==============================================================================
--- trunk/tools/build/v2/tools/builtin.jam	(original)
+++ trunk/tools/build/v2/tools/builtin.jam	2008-03-06 01:57:27 EST (Thu, 06 Mar 2008)
@@ -437,8 +437,17 @@
 
 scanner.register c-scanner : include ;
 
+# It most cases where a CPP file or a H file is a source of some action, 
+# we should rebuild the result if any of files included by CPP/H
+# are changed. One case when this is not needed is installation,
+# which is handled specifically.
 type.set-scanner CPP : c-scanner ;
 type.set-scanner C   : c-scanner ;
+# One case where scanning of H/HPP files is necessary is PCH generation --
+# if any header included by HPP being precompiled changes, we need to
+# recompile the header.
+type.set-scanner H   : c-scanner ;
+type.set-scanner HPP : c-scanner ;
 
 
 # The generator class for libraries (target type LIB). Depending on properties