diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-04-18 07:38:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-04-18 07:38:22 +0200 |
commit | 912ac87012ffc2fd0c6fb21823a0244c787ce5ba (patch) | |
tree | 4861fd4b2bcdcfb61b97f215e3a24efaca25af57 /libbuild2/bash/rule.cxx | |
parent | 56e38cffbd730e66261d9da29c8da91d39ebb167 (diff) |
Avoid locking target set if in load phase
Diffstat (limited to 'libbuild2/bash/rule.cxx')
-rw-r--r-- | libbuild2/bash/rule.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbuild2/bash/rule.cxx b/libbuild2/bash/rule.cxx index 3048d3c..db3cc3e 100644 --- a/libbuild2/bash/rule.cxx +++ b/libbuild2/bash/rule.cxx @@ -161,6 +161,9 @@ namespace build2 if (mt != timestamp_nonexistent) { + // @@ Do we actually need _locked(), isn't path_mtime() + // atomic? + // auto rp (t.ctx.targets.insert_locked (bash::static_type, ap.directory (), dir_path () /* out */, |