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

Weaken check for unused sources for libraries -- so that we don't warn

the statically linked library bypasses library sources.


[SVN r21960]
This commit is contained in:
Vladimir Prus
2004-01-26 11:32:58 +00:00
parent 26f585d7bf
commit 58985d4994

View File

@@ -414,6 +414,23 @@ class lib-target-class : basic-target
return $(result) ;
}
rule check-for-unused-sources ( result * : sources * )
{
# For library targets, it's okay to bypass input sources of
# type LIB: with <link>static we can't consume library.
local sources-to-check ;
for local s in $(sources)
{
if ! [ type.is-derived [ $(s).type ] LIB ]
{
sources-to-check += $(s) ;
}
}
basic-target.check-for-unused-sources $(result) : $(sources-to-check) ;
}
}
rule lib ( name : sources * : requirements * : default-build *