Boost logo

Boost-Commit :

From: jurko.gospodnetic_at_[hidden]
Date: 2008-09-01 12:04:42


Author: jurko
Date: 2008-09-01 12:04:42 EDT (Mon, 01 Sep 2008)
New Revision: 48518
URL: http://svn.boost.org/trac/boost/changeset/48518

Log:
Corrected a Boost Build error handling in its modules.jam module, causing an 'unknown errors.error rule' error to be reported instead of the intended one when passing incorrect options to the import rule.
Text files modified:
   trunk/tools/build/v2/kernel/modules.jam | 2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

Modified: trunk/tools/build/v2/kernel/modules.jam
==============================================================================
--- trunk/tools/build/v2/kernel/modules.jam (original)
+++ trunk/tools/build/v2/kernel/modules.jam 2008-09-01 12:04:42 EDT (Mon, 01 Sep 2008)
@@ -242,11 +242,13 @@
 {
     if ( $(rules-opt) = * || ! $(rules-opt) ) && $(rename-opt)
     {
+ import errors ;
         errors.error "Rule aliasing is only available for explicit imports." ;
     }
 
     if $(module-names[2]) && ( $(rules-opt) || $(rename-opt) )
     {
+ import errors ;
         errors.error "When loading multiple modules, no specific rules or"
             "renaming is allowed" ;
     }


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