aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/bash/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-10-31 14:17:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-11-03 12:43:44 +0200
commite612a49ef95cf9ce3d0b5496d724f73cae9aa333 (patch)
treeaca5a1007423956524b4149bd0f95c6393691ba1 /libbuild2/bash/rule.cxx
parentf500b3274b4c937d315a652aad3bfcdd808b49ec (diff)
Add line processing customization hook to in::rule
Diffstat (limited to 'libbuild2/bash/rule.cxx')
-rw-r--r--libbuild2/bash/rule.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbuild2/bash/rule.cxx b/libbuild2/bash/rule.cxx
index e0391e3..f2c1eae 100644
--- a/libbuild2/bash/rule.cxx
+++ b/libbuild2/bash/rule.cxx
@@ -200,12 +200,15 @@ namespace build2
action a,
const target& t,
const string& n,
+ optional<uint64_t> flags,
bool strict,
const optional<string>& null) const
{
+ assert (!flags);
+
return n.compare (0, 6, "import") == 0 && (n[6] == ' ' || n[6] == '\t')
? substitute_import (l, a, t, trim (string (n, 7)))
- : rule::substitute (l, a, t, n, strict, null);
+ : rule::substitute (l, a, t, n, nullopt, strict, null);
}
string in_rule::