diff options
Diffstat (limited to 'libbuild2/adhoc-rule-buildscript.cxx')
-rw-r--r-- | libbuild2/adhoc-rule-buildscript.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbuild2/adhoc-rule-buildscript.cxx b/libbuild2/adhoc-rule-buildscript.cxx index a67b07b..61a9e21 100644 --- a/libbuild2/adhoc-rule-buildscript.cxx +++ b/libbuild2/adhoc-rule-buildscript.cxx @@ -718,10 +718,11 @@ namespace build2 // for (dir_path& d: p.second) { + dir_path o; string n; // For GCC 13 -Wdangling-reference. const fsdir& dt (search<fsdir> (t, move (d), - dir_path (), - string (), nullptr, nullptr)); + move (o), + move (n), nullptr, nullptr)); match_sync (a, dt); pts.push_back (prerequisite_target (&dt, true /* adhoc */)); } |