Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80892 - trunk/tools/build/v2/build
From: ghost_at_[hidden]
Date: 2012-10-06 16:16:22


Author: vladimir_prus
Date: 2012-10-06 16:16:22 EDT (Sat, 06 Oct 2012)
New Revision: 80892
URL: http://svn.boost.org/trac/boost/changeset/80892

Log:
Fix basic-target.generate caching when free features are set on command line.

Patch from Alexey Nikitin.

Text files modified:
   trunk/tools/build/v2/build/targets.jam | 12 +++++++-----
   1 files changed, 7 insertions(+), 5 deletions(-)

Modified: trunk/tools/build/v2/build/targets.jam
==============================================================================
--- trunk/tools/build/v2/build/targets.jam (original)
+++ trunk/tools/build/v2/build/targets.jam 2012-10-06 16:16:22 EDT (Sat, 06 Oct 2012)
@@ -1252,13 +1252,15 @@
         }
         targets.push-target $(__name__) ;
 
+ # Apply free features from the command line. If user said
+ # define=FOO
+ # he most likely wants this define to be set for all compiles.
+ # Make it before check for already built.
+ property-set = [ $(property-set).refine
+ [ build-system.command-line-free-features ] ] ;
+
         if ! $(self.generated.$(property-set))
         {
- # Apply free features from the command line. If user said
- # define=FOO
- # he most likely wants this define to be set for all compiles.
- property-set = [ $(property-set).refine
- [ build-system.command-line-free-features ] ] ;
             local rproperties = [ targets.common-properties $(property-set)
                 $(self.requirements) ] ;
 


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