From 156fc95ca97e05b20163fa12b2ac0cd2d6df332c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Tue, 7 Aug 2012 21:30:31 +0000 Subject: [PATCH] Updated Boost Build's doxygen.jam toolset module to not rely on Boost Build leaving behind a dangling 'current project' reference after it finishes loading all of its project modules. This should fix Boost library documentation build failures encountered after revision [79874]. [SVN r79915] --- v2/tools/doxygen.jam | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/v2/tools/doxygen.jam b/v2/tools/doxygen.jam index 8394848dd..9e6154d07 100644 --- a/v2/tools/doxygen.jam +++ b/v2/tools/doxygen.jam @@ -547,36 +547,37 @@ else } } -rule check-tools ( ) +rule check-tools ( project ) { if ! $(.check-tools-targets) { # Find the root project. - local root-project = [ project.current ] ; - root-project = [ $(root-project).project-module ] ; - while - [ project.attribute $(root-project) parent-module ] && - [ project.attribute $(root-project) parent-module ] != user-config + local project-module = [ $(project).project-module ] ; + local parent-module = [ project.attribute $(project-module) + parent-module ] ; + while $(parent-module) && $(parent-module) != user-config { - root-project = - [ project.attribute $(root-project) parent-module ] ; + project-module = $(parent-module) ; + parent-module = [ project.attribute $(project-module) parent-module + ] ; } + project = [ project.target $(project-module) ] ; .latex.check = [ new file-target latex.check : - : [ project.target $(root-project) ] + : $(project) : [ new action : doxygen.check-latex ] : ] ; .dvips.check = [ new file-target dvips.check : - : [ project.target $(root-project) ] + : $(project) : [ new action : doxygen.check-dvips ] : ] ; .gs.check = [ new file-target gs.check : - : [ project.target $(root-project) ] + : $(project) : [ new action : doxygen.check-gs ] : ] ; @@ -593,7 +594,7 @@ class doxygen-check-tools-target-class : basic-target import doxygen ; rule construct ( name : sources * : property-set ) { - return [ property-set.empty ] [ doxygen.check-tools ] ; + return [ property-set.empty ] [ doxygen.check-tools [ project ] ] ; } }