diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-17 13:18:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-17 13:18:17 +0200 |
commit | fe6f3ec0868185511f5acefb2729eb879798f052 (patch) | |
tree | 63a44a73be76ebbdc0be95c72b85756a6442c4eb /build2/version/init.cxx | |
parent | 3a739d4fe0aa7ed1786a93a20c7f43a69b0ebd16 (diff) |
Reimplement version::in_rule in terms of in::rule
Significantly, the version::in_rule rule now track changes to the substitution
values.
Diffstat (limited to 'build2/version/init.cxx')
-rw-r--r-- | build2/version/init.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/build2/version/init.cxx b/build2/version/init.cxx index d2df772..397d7da 100644 --- a/build2/version/init.cxx +++ b/build2/version/init.cxx @@ -232,7 +232,11 @@ namespace build2 // Create the module. // - mod.reset (new module (move (v), committed, rewritten, move (ds))); + mod.reset (new module (cast<string> (rs.vars[var_project]), + move (v), + committed, + rewritten, + move (ds))); return true; // Init first (dist.package, etc). } @@ -295,13 +299,6 @@ namespace build2 } } - // Enter variables. - // - { - m.in_symbol = var_pool.find ("in.symbol"); // in.base - m.in_substitution = var_pool.find ("in.substitution"); // in.base - } - // Register rules. // { |