diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-11-29 16:05:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-11-29 16:05:25 +0200 |
commit | 0da5ad389d0460ff0cca15fbcb11faef35a52e7a (patch) | |
tree | e0d44182cbe82e485f486aaaa1daae805d54d93b | |
parent | bdbb7e2535009b2a142567a2235ac0a71352c749 (diff) |
Add sanity check
-rw-r--r-- | libbuild2/target.ixx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/target.ixx b/libbuild2/target.ixx index 49f87cf..8b52f22 100644 --- a/libbuild2/target.ixx +++ b/libbuild2/target.ixx @@ -531,7 +531,7 @@ namespace build2 for (; e == 1; e = path_state_.load (memory_order_acquire)) /*this_thread::yield ()*/ ; - assert (path_ == p); + assert (e == 2 && path_ == p); } return path_; |