aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-11-29 16:05:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-11-29 16:05:25 +0200
commit0da5ad389d0460ff0cca15fbcb11faef35a52e7a (patch)
treee0d44182cbe82e485f486aaaa1daae805d54d93b /libbuild2
parentbdbb7e2535009b2a142567a2235ac0a71352c749 (diff)
Add sanity check
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/target.ixx2
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_;