diff --git a/src/build/generators.jam b/src/build/generators.jam index 8141b96c9..50cb48ca8 100644 --- a/src/build/generators.jam +++ b/src/build/generators.jam @@ -314,12 +314,13 @@ class generator # rule clone ( new-id : new-toolset-properties + ) { - return [ new $(__class__) $(new-id) $(self.composing) : + local g = [ new $(__class__) $(new-id) $(self.composing) : $(self.source-types) : $(self.target-types-and-names) : # Note: this does not remove any subfeatures of which # might cause problems. [ property.change $(self.requirements) : ] $(new-toolset-properties) ] ; + $(g).set-rule-name [ $(self.rule-name) ] ; } # Creates another generator that is the same as $(self), except that if