aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/search.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-09-24 13:10:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-09-24 13:10:25 +0200
commitb6c61ea9afd2d738711770e44748e48be009154d (patch)
tree9f4e2ab650e8359e3fe0a9c5eed45dc2f2f4f160 /libbuild2/search.cxx
parentc94f066bbd47520cf52937fc4ad08a699abda28a (diff)
Give hints for common causes of "no rule to update ..." error
Diffstat (limited to 'libbuild2/search.cxx')
-rw-r--r--libbuild2/search.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/libbuild2/search.cxx b/libbuild2/search.cxx
index 8f5410c..2b10e0b 100644
--- a/libbuild2/search.cxx
+++ b/libbuild2/search.cxx
@@ -183,9 +183,13 @@ namespace build2
// Find or insert. Note that we are using our updated extension.
//
- auto r (
- ctx.targets.insert (
- *tk.type, move (d), move (out), *tk.name, ext, true, trace));
+ auto r (ctx.targets.insert (*tk.type,
+ move (d),
+ move (out),
+ *tk.name,
+ ext,
+ target_decl::prereq_file,
+ trace));
// Has to be a file_target.
//
@@ -231,7 +235,7 @@ namespace build2
*tk.out,
*tk.name,
tk.ext,
- true /* implied */,
+ target_decl::prereq_new,
trace));
const target& t (r.first);