aboutsummaryrefslogtreecommitdiff
path: root/build2/cxx/target.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-01-09 13:09:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-01-09 13:09:18 +0200
commit8e904346350cff0453c8bcd524a40a631fc05485 (patch)
treef096ad1e87d8a814c6e00c179c8849ed646e0989 /build2/cxx/target.hxx
parentba8ce9226af026f873883b7d4e29079bbfece586 (diff)
Tighten cc rules matching
Specifically, make sure the rule does not match if there is a c-common prerequisites that it doesn't recognize.
Diffstat (limited to 'build2/cxx/target.hxx')
-rw-r--r--build2/cxx/target.hxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/build2/cxx/target.hxx b/build2/cxx/target.hxx
index e31d311..94295d1 100644
--- a/build2/cxx/target.hxx
+++ b/build2/cxx/target.hxx
@@ -18,30 +18,30 @@ namespace build2
using cc::h;
using cc::c;
- class hxx: public file
+ class hxx: public cc::cc
{
public:
- using file::file;
+ using cc::cc;
public:
static const target_type static_type;
virtual const target_type& dynamic_type () const {return static_type;}
};
- class ixx: public file
+ class ixx: public cc::cc
{
public:
- using file::file;
+ using cc::cc;
public:
static const target_type static_type;
virtual const target_type& dynamic_type () const {return static_type;}
};
- class txx: public file
+ class txx: public cc::cc
{
public:
- using file::file;
+ using cc::cc;
public:
static const target_type static_type;
@@ -61,12 +61,12 @@ namespace build2
// The module interface unit is both like a header (e.g., we need to
// install it) and like a source (we need to compile it). Plus, to
// support dual use (modules/headers) it could actually be #include'd
- // (and even in both cases).
+ // (and even in both cases e.g., by different codebases).
//
- class mxx: public file
+ class mxx: public cc::cc
{
public:
- using file::file;
+ using cc::cc;
public:
static const target_type static_type;