|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83922 - trunk/tools/build/v2/build
From: steven_at_[hidden]
Date: 2013-04-15 20:14:37
Author: steven_watanabe
Date: 2013-04-15 20:14:37 EDT (Mon, 15 Apr 2013)
New Revision: 83922
URL: http://svn.boost.org/trac/boost/changeset/83922
Log:
Tweak type.is-derived.
Text files modified:
trunk/tools/build/v2/build/type.jam | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
Modified: trunk/tools/build/v2/build/type.jam
==============================================================================
--- trunk/tools/build/v2/build/type.jam (original)
+++ trunk/tools/build/v2/build/type.jam 2013-04-15 20:14:37 EDT (Mon, 15 Apr 2013)
@@ -53,6 +53,7 @@
.types += $(type) ;
.base.$(type) = $(base-type) ;
.derived.$(base-type) += $(type) ;
+ .bases.$(type) = $(type) $(.bases.$(base-type)) ;
# Store suffixes for generated targets.
.suffixes.$(type) = [ new property-map ] ;
@@ -192,13 +193,7 @@
#
rule all-bases ( type )
{
- local result = $(type) ;
- while $(type)
- {
- type = [ base $(type) ] ;
- result += $(type) ;
- }
- return $(result) ;
+ return $(.bases.$(type)) ;
}
@@ -221,7 +216,7 @@
#
rule is-derived ( type base )
{
- if $(base) in [ all-bases $(type) ]
+ if $(base) in $(.bases.$(type))
{
return true ;
}
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