mirror of
https://github.com/boostorg/build.git
synced 2026-02-17 13:42:14 +00:00
Fix gettext regression. During construction of subvariant object for
a given build of a given main target, all virtual target created in the build process would be marked as roots, as opposed to only those retuned to dependents. As result, gettext module was no able to find any sources to process, and virtual-target.traverse would stop short on first found root. [SVN r32416]
This commit is contained in:
@@ -1153,6 +1153,7 @@ class basic-target : abstract-target
|
||||
result = $(result[2-]) ;
|
||||
|
||||
local s = [ create-subvariant
|
||||
$(result) :
|
||||
[ virtual-target.recent-targets ]
|
||||
: $(property-set) : $(source-targets)
|
||||
: $(rproperties) : $(usage-requirements) ] ;
|
||||
@@ -1234,19 +1235,22 @@ class basic-target : abstract-target
|
||||
}
|
||||
|
||||
# Creates a new subvariant-dg instances for 'targets'
|
||||
local rule create-subvariant ( targets * : build-request : sources * :
|
||||
# - 'root-targets' the virtual targets will be returned to dependents
|
||||
# - 'all-targets' all virtual
|
||||
# targets created while building this main target
|
||||
# - 'build-request' is property-set instance with requested build properties
|
||||
local rule create-subvariant ( root-targets *
|
||||
: all-targets * : build-request : sources * :
|
||||
rproperties
|
||||
: usage-requirements )
|
||||
{
|
||||
for local e in $(targets)
|
||||
for local e in $(root-targets)
|
||||
{
|
||||
$(e).root true ;
|
||||
}
|
||||
|
||||
# Process all vtargets that will be created if this main target
|
||||
# is created.
|
||||
local all-targets =
|
||||
[ sequence.transform virtual-target.traverse : $(targets) ] ;
|
||||
local s = [ new subvariant $(__name__) : $(build-request) : $(sources)
|
||||
: $(rproperties) : $(usage-requirements) : $(all-targets) ] ;
|
||||
for local v in $(all-targets)
|
||||
|
||||
Reference in New Issue
Block a user