diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-07 10:00:46 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-07 14:05:39 +0200 |
commit | 378b2598a305d4e332e52460ca89dd867546a58b (patch) | |
tree | 7541771843232bc6d51880d58a57e25737b7ba13 /build2/cli | |
parent | f10be65c39c18668df31c8680569a6417ef3ae06 (diff) |
Initial work for default update outer operation
While update still uses the old "all update rules update all their
prerequisites" assumption, test and install have been fixed not to
rely on this.
Diffstat (limited to 'build2/cli')
-rw-r--r-- | build2/cli/init.cxx | 2 | ||||
-rw-r--r-- | build2/cli/rule.cxx | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/build2/cli/init.cxx b/build2/cli/init.cxx index df123ba..ede0db1 100644 --- a/build2/cli/init.cxx +++ b/build2/cli/init.cxx @@ -319,6 +319,8 @@ namespace build2 // resolved/linked up. Looks like a general pattern: groups should // resolve on *(update). // + // @@ meta-op wildcard? + // reg (configure_id, update_id); reg (dist_id, update_id); } diff --git a/build2/cli/rule.cxx b/build2/cli/rule.cxx index 42f2176..94b2d24 100644 --- a/build2/cli/rule.cxx +++ b/build2/cli/rule.cxx @@ -167,15 +167,15 @@ namespace build2 // inject_fsdir (a, t); - // Match prerequisite members. + // Match prerequisites. // match_prerequisite_members (a, t); switch (a) { case perform_update_id: return &perform_update; - case perform_clean_id: return &perform_clean_group; // Standard impl. - default: return noop_recipe; // Configure update. + case perform_clean_id: return &perform_clean_group; // Standard impl. + default: return noop_recipe; // Configure update. } } else |