From 4ca5a5bc2991438602d3b1fdb56b91d2b425c52d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 17 Jul 2020 17:17:55 +0200 Subject: Fix race in path/mtime assignment and file_rule::match() --- libbuild2/search.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libbuild2/search.cxx') diff --git a/libbuild2/search.cxx b/libbuild2/search.cxx index 5887138..8f5410c 100644 --- a/libbuild2/search.cxx +++ b/libbuild2/search.cxx @@ -194,8 +194,7 @@ namespace build2 l5 ([&]{trace << (r.second ? "new" : "existing") << " target " << t << " for prerequisite " << cpk;}); - t.mtime (mt); - t.path (move (f)); + t.path_mtime (move (f), mt); return &t; } -- cgit v1.1