aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/adhoc-rule-buildscript.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-07-20 10:18:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-07-20 10:18:54 +0200
commit317e2cb68753c7b89783a3c829ba53889a370f8c (patch)
tree04b803c94b95645130dc7942cdf53aa9a0357672 /libbuild2/adhoc-rule-buildscript.hxx
parentd3ef150c45d9325bc075d33a00c8cf0a6b1bf954 (diff)
Don't treat unmatched prerequisites as implicitly ad hoc
It was surprising and inconvenient that they didn't end up in $<. Plus, such prerequisites can always be marked as ad hoc explicitly.
Diffstat (limited to 'libbuild2/adhoc-rule-buildscript.hxx')
-rw-r--r--libbuild2/adhoc-rule-buildscript.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/libbuild2/adhoc-rule-buildscript.hxx b/libbuild2/adhoc-rule-buildscript.hxx
index 994b18c..336dceb 100644
--- a/libbuild2/adhoc-rule-buildscript.hxx
+++ b/libbuild2/adhoc-rule-buildscript.hxx
@@ -96,9 +96,12 @@ namespace build2
public:
using script_type = build::script::script;
- // The prerequisite_target::include bit that indicates update=unmatch.
+ // The prerequisite_target::include bits that indicate update=unmatch and
+ // an ad hoc version of that.
//
- static const uintptr_t include_unmatch = 0x100;
+ static const uintptr_t include_unmatch = 0x100;
+ static const uintptr_t include_unmatch_adhoc = 0x200;
+
script_type script;
string checksum; // Script text hash.