From cb15d70fd45f654401f7d550b8dbd4fa7e8f011f Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Thu, 6 Mar 2008 06:57:27 +0000 Subject: [PATCH] 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. [SVN r43527] --- src/tools/builtin.jam | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/tools/builtin.jam b/src/tools/builtin.jam index 0d4286734..3a6463ae4 100644 --- a/src/tools/builtin.jam +++ b/src/tools/builtin.jam @@ -437,8 +437,17 @@ type.register C : c ; 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