aboutsummaryrefslogtreecommitdiff
path: root/build2/target.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-09 11:31:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-12 17:04:22 +0200
commit9fa5f73d00905568e8979d0c93ec4a8f645c81d5 (patch)
treef2bf937fa256c0ef2c9bbe05d3655d1985719405 /build2/target.cxx
parenta1b2319ff2ddc8a6f139ee364cabe236ca62e23e (diff)
Implement support for C compilation
We now have two new modules: cc (c-common) and c.
Diffstat (limited to 'build2/target.cxx')
-rw-r--r--build2/target.cxx6
1 files changed, 3 insertions, 3 deletions
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;