diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-02 15:35:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-13 12:42:41 +0200 |
commit | 63f6a8256e3f9fb47cb941be63baa70e2be48d3b (patch) | |
tree | d2799d1d605a27fa0a13d63f974f26fa78306e36 /build2/search.cxx | |
parent | d263455d5ac0d87541144dd7a37eb6255b721a89 (diff) |
Implement target_set locking, including extension update
Diffstat (limited to 'build2/search.cxx')
-rw-r--r-- | build2/search.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/build2/search.cxx b/build2/search.cxx index 8f621c2..7c658e0 100644 --- a/build2/search.cxx +++ b/build2/search.cxx @@ -171,8 +171,9 @@ namespace build2 // Find or insert. Note that we are using our updated extension. // - auto r (targets.insert ( - *tk.type, move (d), move (out), *tk.name, ext, false, trace)); + auto r ( + targets.insert ( + *tk.type, move (d), move (out), *tk.name, ext, true, trace)); // Has to be a file_target. // @@ -215,8 +216,9 @@ namespace build2 // // @@ OUT: same story as in search_existing_target() re out. // - auto r (targets.insert ( - *tk.type, move (d), *tk.out, *tk.name, tk.ext, false, trace)); + auto r ( + targets.insert ( + *tk.type, move (d), *tk.out, *tk.name, tk.ext, true, trace)); assert (r.second); target& t (r.first); |