mirror of
https://github.com/boostorg/build.git
synced 2026-02-14 12:42:11 +00:00
Add assertions
[SVN r16838]
This commit is contained in:
@@ -948,11 +948,13 @@ rule construct ( project name ? : target-type multiple ? : properties * : source
|
||||
local result2 ;
|
||||
for local t in $(result)
|
||||
{
|
||||
local type = [ $(t).type ] ;
|
||||
local type = [ $(t).type ] ;
|
||||
assert.nonempty-variable type ;
|
||||
assert.nonempty-variable target-type ;
|
||||
if $(type) = $(target-type) || [ type.is-derived $(type) $(target-type) ]
|
||||
{
|
||||
{
|
||||
result2 += $(t) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $(result2) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user