aboutsummaryrefslogtreecommitdiff
path: root/build2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-03-03 12:48:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-03-07 13:58:48 +0200
commit8475c82a2ca186f4ca987e50b4249bb8eb32ba01 (patch)
tree20c782983f70f7e45ab71ce347ffba3d53650e25 /build2
parentd28553772a3010fb545eae09967fa54adbe63bdb (diff)
Add support for update=unmatch|match to ad hoc recipes
Diffstat (limited to 'build2')
-rw-r--r--build2/cli/rule.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/build2/cli/rule.cxx b/build2/cli/rule.cxx
index 99b6bee..5c03d9c 100644
--- a/build2/cli/rule.cxx
+++ b/build2/cli/rule.cxx
@@ -122,7 +122,9 @@ namespace build2
if (g == nullptr)
g = &t.ctx.targets.insert<cli_cxx> (t.dir, t.out, t.name, trace);
- g->prerequisites (prerequisites {p->as_prerequisite ()});
+ prerequisites ps;
+ ps.push_back (p->as_prerequisite ());
+ g->prerequisites (move (ps));
}
}