2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 01:32:12 +00:00

Fixed minor Boost Build error reporting bugs caused by module rules not being directly available using their full names when imported from inside a class rule - an error about rule errors.error or errors.user-error not being defined was getting reported instead of the desired error. This is due to the fact that rule name resolution does not look in the current module in that case but uses the class module instead.

[SVN r79621]
This commit is contained in:
Jurko Gospodnetić
2012-07-20 14:39:50 +00:00
parent 52ed6e5a98
commit 35fad6df6c
2 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ class scanner
#
rule pattern ( )
{
import errors ;
import errors : error : errors.error ;
errors.error "method must be overriden" ;
}
@@ -49,7 +49,7 @@ class scanner
#
rule process ( target : matches * )
{
import errors ;
import errors : error : errors.error ;
errors.error "method must be overriden" ;
}
}

View File

@@ -326,7 +326,7 @@ class gcc-pch-generator : pch-generator
if $(header-basename) != $(name)
{
local location = [ $(project).project-module ] ;
import errors ;
import errors : user-error : errors.user-error ;
errors.user-error "in" $(location): pch target name '$(name)' should
be the same as the base name of header file '$(header-name)' ;
}