Boost logo

Boost-Commit :

From: jurko.gospodnetic_at_[hidden]
Date: 2008-07-30 08:35:48


Author: jurko
Date: 2008-07-30 08:35:48 EDT (Wed, 30 Jul 2008)
New Revision: 47884
URL: http://svn.boost.org/trac/boost/changeset/47884

Log:
Made the Boost Build c++-template-depth feature be optional, thus avoiding a need to have each toolset module define its default value for this feature. This corrects a 'bug' with each such toolset module redefining the default value for all other toolsets as well. This also avoids a redundant command-line option from being passed to the compiler when this property is not specified.

Text files modified:
   trunk/tools/build/v2/tools/builtin.jam | 6 +-----
   trunk/tools/build/v2/tools/qcc.jam | 1 -
   2 files changed, 1 insertions(+), 6 deletions(-)

Modified: trunk/tools/build/v2/tools/builtin.jam
==============================================================================
--- trunk/tools/build/v2/tools/builtin.jam (original)
+++ trunk/tools/build/v2/tools/builtin.jam 2008-07-30 08:35:48 EDT (Wed, 30 Jul 2008)
@@ -156,10 +156,6 @@
 # define some of the values here and leave it up to the user to extend this set
 # as he needs using the feature.extend rule.
 #
-# If a specific toolset requires a default value for this feature other than the
-# one defined here it should set the feature's default value using the
-# feature.set-default rule.
-#
 # TODO: This should be upgraded as soon as Boost Build adds support for custom
 # validated feature values or at least features allowing any positive integral
 # value. See related Boost Build related trac ticket #194.
@@ -172,7 +168,7 @@
         # conforming programs.
         17
     :
- incidental propagated ;
+ incidental optional propagated ;
 
 feature.feature source : : free dependency incidental ;
 feature.feature library : : free dependency incidental ;

Modified: trunk/tools/build/v2/tools/qcc.jam
==============================================================================
--- trunk/tools/build/v2/tools/qcc.jam (original)
+++ trunk/tools/build/v2/tools/qcc.jam 2008-07-30 08:35:48 EDT (Wed, 30 Jul 2008)
@@ -80,7 +80,6 @@
 flags qcc.compile OPTIONS <link>shared : -shared ;
 
 flags qcc.compile.c++ TEMPLATE_DEPTH <c++-template-depth> ;
-feature.set-default c++-template-depth : 100 ;
 
 
 actions compile.c++


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