Subject: [Boost-bugs] [Boost C++ Libraries] #2648: Re-registering an existing suffix for a type fails erroneously
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-11 04:39:35
#2648: Re-registering an existing suffix for a type fails erroneously
-------------------------------------+--------------------------------------
Reporter: anonymous | Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: To Be Determined | Component: build
Version: Boost Development Trunk | Severity: Problem
Keywords: type suffixes |
-------------------------------------+--------------------------------------
I've attached a patch against the development trunk that indicates what I
believe is a problem in {{{ tools/build/v2/build/type.jam }}}.
The comments and the code suggest that re-registering a suffix to a type
should be okay. I've included a snippet from the current trunk below.
{{{
# Specifies that files with suffix from 'suffixes' be recognized as
targets of
# type 'type'. Issues an error if a different type is already specified
for any
# of the suffixes.
#
rule register-suffixes ( suffixes + : type )
{
for local s in $(suffixes)
{
if ! $(.type.$(s))
{
.type.$(s) = $(type) ;
}
else if $(.type.$(s)) != type
{
errors.error Attempting to specify multiple types for suffix
\"$(s)\" : "Old type $(.type.$(s)), New type $(type)" ;
}
}
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2648> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC