aboutsummaryrefslogtreecommitdiff
path: root/build/cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/cxx')
-rw-r--r--build/cxx/rule.cxx7
1 files changed, 5 insertions, 2 deletions
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<lib> () ||
+ p.is_a<liba> () ||
+ p.is_a<libso> ())
continue;
if (p.type.id == typeid (cxx))