From b6c61ea9afd2d738711770e44748e48be009154d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 24 Sep 2020 13:10:25 +0200 Subject: Give hints for common causes of "no rule to update ..." error --- libbuild2/search.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'libbuild2/search.cxx') 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); -- cgit v1.1