Date: 2008-03-06 01:57:28
Date: 2008-03-06 01:57:27 EST (Thu, 06 Mar 2008)
New Revision: 43527
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(-)
--- 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
Boost-Commit 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