aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/cc/link-rule.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/build2/cc/link-rule.cxx b/build2/cc/link-rule.cxx
index 3c2be53..0bfef09 100644
--- a/build2/cc/link-rule.cxx
+++ b/build2/cc/link-rule.cxx
@@ -790,8 +790,7 @@ namespace build2
if (!pt->has_prerequisites ())
{
- prerequisites ps;
- ps.push_back (p.as_prerequisite ()); // Source.
+ prerequisites ps {p.as_prerequisite ()}; // Source.
// Add our lib*{} (see the export.* machinery for details) and
// bmi*{} (both original and chained; see module search logic)