From 9ae4897cfe935598333a5f709e967fefc4c161aa Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 31 May 2017 16:35:50 +0200 Subject: C++ modules work: add target types --- build2/cxx/init.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'build2/cxx/init.cxx') diff --git a/build2/cxx/init.cxx b/build2/cxx/init.cxx index fde12e3..a5422d2 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 (rs["cxx.config.loaded"])) load_module (rs, rs, "cxx.config", loc, false, hints); + bool modules (cast (rs["cxx.features.modules"])); + config_module& cm (*rs.modules.lookup ("cxx.config")); cc::data d { @@ -433,13 +437,14 @@ namespace build2 cm.tstd, - cast (rs["cxx.features.modules"]), + modules, cast_null (rs["pkgconfig.path"]), cast (rs[cm.x_sys_lib_dirs]), cast (rs[cm.x_sys_inc_dirs]), cxx::static_type, + modules ? &mxx::static_type : nullptr, hdr, inc }; -- cgit v1.1