From 1ce29c8f36d285ecd9022ecd2c4eae8cc040f9f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Wed, 30 Jul 2008 12:35:48 +0000 Subject: [PATCH] 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. [SVN r47884] --- v2/tools/builtin.jam | 6 +----- v2/tools/qcc.jam | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/v2/tools/builtin.jam b/v2/tools/builtin.jam index 13a7bf272..f05b9c51e 100644 --- a/v2/tools/builtin.jam +++ b/v2/tools/builtin.jam @@ -156,10 +156,6 @@ feature.feature warnings-as-errors : # 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 @@ feature.feature c++-template-depth # conforming programs. 17 : - incidental propagated ; + incidental optional propagated ; feature.feature source : : free dependency incidental ; feature.feature library : : free dependency incidental ; diff --git a/v2/tools/qcc.jam b/v2/tools/qcc.jam index 390c36aef..e0b005e20 100644 --- a/v2/tools/qcc.jam +++ b/v2/tools/qcc.jam @@ -80,7 +80,6 @@ flags qcc.compile INCLUDES ; flags qcc.compile OPTIONS shared : -shared ; flags qcc.compile.c++ TEMPLATE_DEPTH ; -feature.set-default c++-template-depth : 100 ; actions compile.c++