|
Boost-Commit : |
From: ghost_at_[hidden]
Date: 2008-05-21 08:18:09
Author: vladimir_prus
Date: 2008-05-21 08:18:08 EDT (Wed, 21 May 2008)
New Revision: 45604
URL: http://svn.boost.org/trac/boost/changeset/45604
Log:
Disallow '=' in the values of non-free features.
Text files modified:
trunk/tools/build/v2/build/feature.jam | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
Modified: trunk/tools/build/v2/build/feature.jam
==============================================================================
--- trunk/tools/build/v2/build/feature.jam (original)
+++ trunk/tools/build/v2/build/feature.jam 2008-05-21 08:18:08 EDT (Wed, 21 May 2008)
@@ -118,7 +118,15 @@
{
error = free features cannot be propagated ;
}
-
+ else
+ {
+ local m = [ MATCH (.*=.*) : $(values) ] ;
+ if $(m[1])
+ {
+ error = "feature value may not contain '='" ;
+ }
+ }
+
if $(error)
{
errors.error $(error)
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