$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r55864 - trunk/tools/build/v2/build
From: ghost_at_[hidden]
Date: 2009-08-29 09:15:58
Author: vladimir_prus
Date: 2009-08-29 09:15:58 EDT (Sat, 29 Aug 2009)
New Revision: 55864
URL: http://svn.boost.org/trac/boost/changeset/55864
Log:
Preserve the order of sources when calling generator
Text files modified: 
   trunk/tools/build/v2/build/targets.jam |     5 ++++-                                   
   1 files changed, 4 insertions(+), 1 deletions(-)
Modified: trunk/tools/build/v2/build/targets.jam
==============================================================================
--- trunk/tools/build/v2/build/targets.jam	(original)
+++ trunk/tools/build/v2/build/targets.jam	2009-08-29 09:15:58 EDT (Sat, 29 Aug 2009)
@@ -1245,7 +1245,10 @@
                 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) ] ;