aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/module.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-01-25 15:41:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-13 12:39:24 +0200
commit88f0780e34116c0441a8d8c58b8a8fd9fde4b1f5 (patch)
tree1240b36211772479dc1220712e0daed4e35ecd85 /build2/cc/module.cxx
parent61aa8e2b4bd7849838c04dc1f421c4760d88319f (diff)
Add model mutex, make var_pool const by default
Diffstat (limited to 'build2/cc/module.cxx')
-rw-r--r--build2/cc/module.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/build2/cc/module.cxx b/build2/cc/module.cxx
index 3e20694..c7c7c3c 100644
--- a/build2/cc/module.cxx
+++ b/build2/cc/module.cxx
@@ -279,6 +279,8 @@ namespace build2
//
variable_map h;
+ // Note that all these variables have already been registered.
+ //
h.assign ("config.cc.id") = cast<string> (rs[x_id]);
h.assign ("config.cc.target") = cast<target_triplet> (rs[x_target]);
@@ -288,7 +290,7 @@ namespace build2
if (!ci.bin_pattern.empty ())
h.assign ("config.bin.pattern") = move (ci.bin_pattern);
- load_module ("cc.core.config", rs, rs, loc, false, h);
+ load_module (rs, rs, "cc.core.config", loc, false, h);
}
else
{
@@ -331,7 +333,7 @@ namespace build2
// extra bin.* modules we may need.
//
if (!cast_false<bool> (rs["cc.core.loaded"]))
- load_module ("cc.core", rs, rs, loc);
+ load_module (rs, rs, "cc.core", loc);
// Register target types and configure their "installability".
//
@@ -347,7 +349,7 @@ namespace build2
for (const target_type* const* ht (x_hdr); *ht != nullptr; ++ht)
{
t.insert (**ht);
- install_path (**ht, rs, dir_path ("include"));
+ install_path (rs, **ht, dir_path ("include"));
}
}