aboutsummaryrefslogtreecommitdiff
path: root/build2/prerequisite.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-02-15 03:55:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-02 14:03:34 +0200
commitb37f1aa6398065be806e6605a023189685669885 (patch)
treeb9b32091e3d70a31852302b24c99ecb62465464a /build2/prerequisite.cxx
parenta64b2ae2099346471ead988d5f2d383d55a9bf89 (diff)
Implement parallel match
Diffstat (limited to 'build2/prerequisite.cxx')
-rw-r--r--build2/prerequisite.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/prerequisite.cxx b/build2/prerequisite.cxx
index 47da950..b1f3cb2 100644
--- a/build2/prerequisite.cxx
+++ b/build2/prerequisite.cxx
@@ -57,7 +57,7 @@ namespace build2
}
prerequisite::
- prerequisite (target_type& t)
+ prerequisite (const target_type& t)
: proj (nullopt),
type (t.type ()),
dir (t.dir),
@@ -72,7 +72,7 @@ namespace build2
bool prerequisite::
belongs (const target_type& t) const
{
- const auto& p (t.prerequisites);
+ const auto& p (t.prerequisites ());
return !(p.empty () || this < &p.front () || this > &p.back ());
}
}