Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49976 - trunk/tools/build/v2/build
From: ghost_at_[hidden]
Date: 2008-11-28 05:39:03


Author: vladimir_prus
Date: 2008-11-28 05:39:02 EST (Fri, 28 Nov 2008)
New Revision: 49976
URL: http://svn.boost.org/trac/boost/changeset/49976

Log:
Fix generator.clone-and-change-type to preserve rule name
Text files modified:
   trunk/tools/build/v2/build/generators.jam | 7 ++++++-
   1 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/tools/build/v2/build/generators.jam
==============================================================================
--- trunk/tools/build/v2/build/generators.jam (original)
+++ trunk/tools/build/v2/build/generators.jam 2008-11-28 05:39:02 EST (Fri, 28 Nov 2008)
@@ -347,8 +347,13 @@
             }
         }
 
- return [ new $(__class__) $(self.id) $(self.composing) :
+ local g = [ new $(__class__) $(self.id) $(self.composing) :
             $(self.source-types) : $(target-types) : $(self.requirements) ] ;
+ if $(self.rule-name)
+ {
+ $(g).set-rule-name $(self.rule-name) ;
+ }
+ return $(g) ;
     }
 
     # Tries to invoke this generator on the given sources. Returns a list of


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