diff --git a/src/build/virtual-target.jam b/src/build/virtual-target.jam index 5df6bbe7e..d7b84321c 100644 --- a/src/build/virtual-target.jam +++ b/src/build/virtual-target.jam @@ -174,6 +174,19 @@ class virtual-target # private: (overridables) + # Sets/gets the 'root' flag. Target is root if it directly corresponds to + # some variant of a main target. + # + rule root ( set ? ) + { + if $(set) + { + self.root = true ; + } + return $(self.root) ; + } + + # Sets up build actions for 'target'. Should call appropriate rules and set # target variables. # @@ -296,18 +309,6 @@ class abstract-file-target : virtual-target return $(self.action) ; } - # Sets/gets the 'root' flag. Target is root if it directly corresponds to - # some variant of a main target. - # - rule root ( set ? ) - { - if $(set) - { - self.root = true ; - } - return $(self.root) ; - } - # Gets or sets the subvariant which created this target. Subvariant is set # when target is brought into existence and is never changed after that. In # particular, if a target is shared by multiple subvariants, only the first