aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-08-12 18:01:24 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-08-13 15:46:09 +0300
commitbcb9588ea24d32055c5cc0493efc737b168f4978 (patch)
treec52c00666ff6bf4a227bff3bcb93d2d1efa8a0a3
parent4681fdb1160939bcd32c208eae4de474d90b44c1 (diff)
Fix assertion failure in to_stream() for target key without extension
Also fix a similar assertion.
-rw-r--r--libbuild2/target.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/target.cxx b/libbuild2/target.cxx
index 34f3f72..7327b1b 100644
--- a/libbuild2/target.cxx
+++ b/libbuild2/target.cxx
@@ -54,7 +54,7 @@ namespace build2
target::combine_name (v, ext, false /* @@ TODO: what to do? */);
}
else
- assert (!ext);
+ assert (!ext || ext->empty ()); // Unspecified or none.
r.emplace_back (*dir, type->name, move (v));
@@ -547,7 +547,7 @@ namespace build2
}
}
else
- assert (!k.ext);
+ assert (!k.ext || k.ext->empty ()); // Unspecified or none.
}
else
to_stream (os,