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

Preserve the order of sources when calling generator

[SVN r55864]
This commit is contained in:
Vladimir Prus
2009-08-29 13:15:58 +00:00
parent 0b2f1d0f23
commit 1038bdc76c

View File

@@ -1245,7 +1245,10 @@ class basic-target : abstract-target
source-targets += $(extra:G=) ;
# We might get duplicate sources, for example if we link to two
# libraries having the same <library> usage requirement.
source-targets = [ sequence.unique $(source-targets) ] ;
# Use stable sort, since for some targets the order is
# important. E.g. RUN_PY target need python source to come
# first.
source-targets = [ sequence.unique $(source-targets) : stable ] ;
local result = [ construct $(self.name) : $(source-targets) :
$(rproperties) ] ;