aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-06-23 10:10:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-06-23 10:10:13 +0200
commitff8ed209cd80799199e0b2e3d37213d549bc342f (patch)
treebf81ea5b60a9cf2b2d0defb2a7e08c9d18da58b3
parent9a00b8ccfef1d13088be2d76fefcb320c269732a (diff)
Don't treat mxx{} as cc-source
If we do it, then the link rule will refuse to match when modules are disabled (in which case mxx{} should be treated as a header).
-rw-r--r--build2/cxx/target.cxx2
-rw-r--r--build2/cxx/target.hxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/build2/cxx/target.cxx b/build2/cxx/target.cxx
index 5641e7a..bde41fc 100644
--- a/build2/cxx/target.cxx
+++ b/build2/cxx/target.cxx
@@ -68,7 +68,7 @@ namespace build2
const target_type mxx::static_type
{
"mxx",
- &cc::static_type,
+ &file::static_type,
&target_factory<mxx>,
&target_extension_var<ext_var, mxx_ext_def>,
&target_pattern_var<ext_var, mxx_ext_def>,
diff --git a/build2/cxx/target.hxx b/build2/cxx/target.hxx
index f5591d1..ff1d077 100644
--- a/build2/cxx/target.hxx
+++ b/build2/cxx/target.hxx
@@ -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 in both cases).
+ // (and even in both cases).
//
- class mxx: public cc::cc
+ class mxx: public file
{
public:
- using cc::cc;
+ using file::file;
public:
static const target_type static_type;