diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-31 16:35:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-31 16:36:49 +0200 |
commit | 9ae4897cfe935598333a5f709e967fefc4c161aa (patch) | |
tree | 16bfbcb21a10994a29db602f5cb77a0a50627bdf /build2/cxx/init.cxx | |
parent | b2fc1fb4a13ffa58640333a3909dd0e53bd21995 (diff) | |
download | build2-9ae4897cfe935598333a5f709e967fefc4c161aa.tar.gz build2-9ae4897cfe935598333a5f709e967fefc4c161aa.tar.xz build2-9ae4897cfe935598333a5f709e967fefc4c161aa.zip |
C++ modules work: add target types
Diffstat (limited to 'build2/cxx/init.cxx')
-rw-r--r-- | build2/cxx/init.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/build2/cxx/init.cxx b/build2/cxx/init.cxx index fde12e37..a5422d24 100644 --- a/build2/cxx/init.cxx +++ b/build2/cxx/init.cxx @@ -375,19 +375,21 @@ namespace build2 static const target_type* const hdr[] = { &hxx::static_type, + &h::static_type, &ixx::static_type, &txx::static_type, - &h::static_type, + &mxx::static_type, nullptr }; static const target_type* const inc[] = { &hxx::static_type, + &h::static_type, &ixx::static_type, &txx::static_type, + &mxx::static_type, &cxx::static_type, - &h::static_type, &c::static_type, nullptr }; @@ -414,6 +416,8 @@ namespace build2 if (!cast_false<bool> (rs["cxx.config.loaded"])) load_module (rs, rs, "cxx.config", loc, false, hints); + bool modules (cast<bool> (rs["cxx.features.modules"])); + config_module& cm (*rs.modules.lookup<config_module> ("cxx.config")); cc::data d { @@ -433,13 +437,14 @@ namespace build2 cm.tstd, - cast<bool> (rs["cxx.features.modules"]), + modules, cast_null<process_path> (rs["pkgconfig.path"]), cast<dir_paths> (rs[cm.x_sys_lib_dirs]), cast<dir_paths> (rs[cm.x_sys_inc_dirs]), cxx::static_type, + modules ? &mxx::static_type : nullptr, hdr, inc }; |