Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64349 - trunk/tools/build/v2/build
From: ghost_at_[hidden]
Date: 2010-07-26 04:05:18


Author: vladimir_prus
Date: 2010-07-26 04:05:16 EDT (Mon, 26 Jul 2010)
New Revision: 64349
URL: http://svn.boost.org/trac/boost/changeset/64349

Log:
Fix caching bug that caused various toolset flags to be ingored.

Text files modified:
   trunk/tools/build/v2/build/toolset.py | 8 +++-----
   1 files changed, 3 insertions(+), 5 deletions(-)

Modified: trunk/tools/build/v2/build/toolset.py
==============================================================================
--- trunk/tools/build/v2/build/toolset.py (original)
+++ trunk/tools/build/v2/build/toolset.py 2010-07-26 04:05:16 EDT (Mon, 26 Jul 2010)
@@ -12,6 +12,7 @@
 
 import feature, property, generators, property_set
 import b2.util.set
+from b2.util import cached
 from b2.util.utility import *
 from b2.util import bjam_signature
 
@@ -139,11 +140,7 @@
 def set_target_variables (manager, rule_or_module, targets, ps):
     """
     """
- settings = __stv.get(ps, None)
- if not settings:
- settings = __set_target_variables_aux(manager, rule_or_module, ps)
-
- __stv[ps] = settings
+ settings = __set_target_variables_aux(manager, rule_or_module, ps)
         
     if settings:
         for s in settings:
@@ -277,6 +274,7 @@
 ######################################################################################
 # Private functions
 
+@cached
 def __set_target_variables_aux (manager, rule_or_module, ps):
     """ Given a rule name and a property set, returns a list of tuples of
         variables names and values, which must be set on targets for that


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk