aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/common.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-31 16:35:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-31 16:36:49 +0200
commit9ae4897cfe935598333a5f709e967fefc4c161aa (patch)
tree16bfbcb21a10994a29db602f5cb77a0a50627bdf /build2/cc/common.hxx
parentb2fc1fb4a13ffa58640333a3909dd0e53bd21995 (diff)
C++ modules work: add target types
Diffstat (limited to 'build2/cc/common.hxx')
-rw-r--r--build2/cc/common.hxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/build2/cc/common.hxx b/build2/cc/common.hxx
index 155d670..7d520d0 100644
--- a/build2/cc/common.hxx
+++ b/build2/cc/common.hxx
@@ -120,7 +120,8 @@ namespace build2
const dir_paths& sys_lib_dirs; // x.sys_lib_dirs
const dir_paths& sys_inc_dirs; // x.sys_inc_dirs
- const target_type& x_src; // Source target type (c{}, cxx{}).
+ const target_type& x_src; // Source target type (c{}, cxx{}).
+ const target_type* x_mod; // Module target type (mxx{}), if any.
// Array of target types that are considered headers. Keep them in the
// most likely to appear order and terminate with NULL.
@@ -156,11 +157,12 @@ namespace build2
const process_path& path,
const target_triplet& tg,
const strings& std,
- bool mod,
+ bool fm,
const process_path* pkgc,
const dir_paths& sld,
const dir_paths& sid,
const target_type& src,
+ const target_type* mod,
const target_type* const* hdr,
const target_type* const* inc)
: config_data (cd),
@@ -171,9 +173,9 @@ namespace build2
cid (id), cvar (var), cmaj (mj), cmin (mi), cpath (path),
ctg (tg), tsys (ctg.system), tclass (ctg.class_),
tstd (std),
- modules (mod),
+ modules (fm),
pkgconfig (pkgc), sys_lib_dirs (sld), sys_inc_dirs (sid),
- x_src (src), x_hdr (hdr), x_inc (inc) {}
+ x_src (src), x_mod (mod), x_hdr (hdr), x_inc (inc) {}
};
class common: protected data