From 9fa5f73d00905568e8979d0c93ec4a8f645c81d5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Aug 2016 11:31:53 +0200 Subject: Implement support for C compilation We now have two new modules: cc (c-common) and c. --- build2/target.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/target.cxx') diff --git a/build2/target.cxx b/build2/target.cxx index a0283b0..7a33dbc 100644 --- a/build2/target.cxx +++ b/build2/target.cxx @@ -18,10 +18,10 @@ namespace build2 // target_type // bool target_type:: - is_a (const target_type& tt) const + is_a_base (const target_type& tt) const { - for (const target_type* p (this); p != nullptr; p = p->base) - if (*p == tt) + for (const target_type* b (base); b != nullptr; b = b->base) + if (*b == tt) return true; return false; -- cgit v1.1