aboutsummaryrefslogtreecommitdiff
path: root/build2/version/rule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/version/rule.cxx')
-rw-r--r--build2/version/rule.cxx17
1 files changed, 8 insertions, 9 deletions
diff --git a/build2/version/rule.cxx b/build2/version/rule.cxx
index a0ff1e2..262d623 100644
--- a/build2/version/rule.cxx
+++ b/build2/version/rule.cxx
@@ -4,13 +4,8 @@
#include <build2/version/rule.hxx>
-#include <build2/depdb.hxx>
#include <build2/scope.hxx>
#include <build2/target.hxx>
-#include <build2/context.hxx>
-#include <build2/function.hxx>
-#include <build2/algorithm.hxx>
-#include <build2/filesystem.hxx>
#include <build2/diagnostics.hxx>
#include <build2/in/target.hxx>
@@ -88,7 +83,10 @@ namespace build2
}
string in_rule::
- lookup (const location& l, const target& t, const string& n) const
+ lookup (const location& l,
+ action a,
+ const target& t,
+ const string& n) const
{
// Note that this code will be executed during up-to-date check for each
// substitution so let's try not to do anything overly sub-optimal here.
@@ -105,9 +103,10 @@ namespace build2
if (p == string::npos || n.compare (0, p, m.project) == 0)
{
- // Standard lookup.
- //
- return rule::lookup (l, t, p == string::npos ? n : string (n, p + 1));
+ return rule::lookup (l, // Standard lookup.
+ a,
+ t,
+ p == string::npos ? n : string (n, p + 1));
}
string pn (n, 0, p);