2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 00:32:11 +00:00

Copy generator's rule name when cloning

[SVN r49973]
This commit is contained in:
Vladimir Prus
2008-11-28 10:29:04 +00:00
parent 12787e14f2
commit d97a505d9f

View File

@@ -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 <toolset> which
# might cause problems.
[ property.change $(self.requirements) : <toolset> ]
$(new-toolset-properties) ] ;
$(g).set-rule-name [ $(self.rule-name) ] ;
}
# Creates another generator that is the same as $(self), except that if