aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-06-21 14:23:42 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-06-21 14:23:42 +0300
commitd46ec7333bb81955d3aab8914b2de6e454850aea (patch)
tree2ee06e0af93cecbd2933e3130018548df4cd2b86 /libbuild2
parente3cf44824b93c250ca8b5ee98b6149437ae2c68a (diff)
Fail instead of aborting on src and out directories build file/directory naming schemes mismatch (GH issue #394)
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/file.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbuild2/file.cxx b/libbuild2/file.cxx
index 18147a2..7491ca6 100644
--- a/libbuild2/file.cxx
+++ b/libbuild2/file.cxx
@@ -759,8 +759,9 @@ namespace build2
{
if (!altn)
altn = s.root_extra->altn;
- else
- assert (*altn == s.root_extra->altn);
+ else if (*altn != s.root_extra->altn)
+ fail << "build file/directory naming schemes for " << out_root
+ << " and " << s.src_path () << " does not match";
if (s.root_extra->project)
{