From b53318dcc9f2c34db0689225ec0bc2c70c28daf7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 17 Jun 2015 07:19:15 +0200 Subject: Add libraries to "ok" prerequisites for synthesized object file targets --- build/cxx/rule.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'build/cxx') diff --git a/build/cxx/rule.cxx b/build/cxx/rule.cxx index 63fc4a5..9248777 100644 --- a/build/cxx/rule.cxx +++ b/build/cxx/rule.cxx @@ -789,13 +789,16 @@ namespace build prerequisite* cp1 (nullptr); for (prerequisite& p: reverse_iterate (group_prerequisites (*ot))) { - // Ignore some known target types (fsdir, headers). + // Ignore some known target types (fsdir, headers, libraries). // if (p.type.id == typeid (fsdir) || p.type.id == typeid (h) || (cp.type.id == typeid (cxx) && (p.type.id == typeid (hxx) || p.type.id == typeid (ixx) || - p.type.id == typeid (txx)))) + p.type.id == typeid (txx))) || + p.is_a () || + p.is_a () || + p.is_a ()) continue; if (p.type.id == typeid (cxx)) -- cgit v1.1