aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-12-16 13:37:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-12-16 13:37:09 +0200
commitdab9482b868e2da40d04210c0443bf4d2dcfdfd5 (patch)
tree7d7e95df261433611ed3a954ca9c1f43afe3b7a3 /libbuild2/target.ixx
parent5c3744e914d72916d30c9b4cb4804227d6aae736 (diff)
Verify targets that alias same path are read-only
Diffstat (limited to 'libbuild2/target.ixx')
-rw-r--r--libbuild2/target.ixx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/target.ixx b/libbuild2/target.ixx
index 50750ca..540c718 100644
--- a/libbuild2/target.ixx
+++ b/libbuild2/target.ixx
@@ -582,13 +582,13 @@ namespace build2
// path_target
//
inline const path& path_target::
- path () const
+ path (memory_order mo) const
{
// You may be wondering why don't we spin the transition out? The reason
// is it shouldn't matter since were we called just a moment earlier, we
// wouldn't have seen it.
//
- return path_state_.load (memory_order_acquire) == 2 ? path_ : empty_path;
+ return path_state_.load (mo) == 2 ? path_ : empty_path;
}
inline const path& path_target::