mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 00:52:16 +00:00
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.
[SVN r48518]
This commit is contained in:
@@ -242,11 +242,13 @@ rule import ( module-names + : rules-opt * : rename-opt * )
|
||||
{
|
||||
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" ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user