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

Fix errors when a source doesn't have a type; refs #493 (#496)

This commit is contained in:
Peter Dimov
2019-10-28 05:19:48 -07:00
committed by Rene Rivera
parent 1a0ff1113b
commit ffecbecf86
2 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ class archive-generator : generator
{
for local t in $(sources)
{
if [ type.is-derived [ $(t).type ] LIB ]
if [ $(t).type ] && [ type.is-derived [ $(t).type ] LIB ]
{
usage-requirements += <library>$(t) ;
}

View File

@@ -53,7 +53,7 @@ class linking-generator : generator
local extra-xdll-paths ;
for local s in $(sources)
{
if [ type.is-derived [ $(s).type ] SHARED_LIB ] && ! [ $(s).action ]
if [ $(s).type ] && [ type.is-derived [ $(s).type ] SHARED_LIB ] && ! [ $(s).action ]
{
local location = [ path.root [ $(s).name ]
[ $(s).path ] ] ;
@@ -143,7 +143,7 @@ class linking-generator : generator
local fst ;
for local s in $(sources)
{
if [ type.is-derived [ $(s).type ] SEARCHED_LIB ]
if [ $(s).type ] && [ type.is-derived [ $(s).type ] SEARCHED_LIB ]
{
local name = [ $(s).name ] ;
if [ $(s).shared ]