diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-06-21 14:23:42 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-06-24 11:18:04 +0300 |
commit | ff07b9a24212fd8cb92504f51b650afd52d7d408 (patch) | |
tree | de4ff04bb9b39e1470f9bb746a827df8bfca64cc /libbuild2 | |
parent | e3cf44824b93c250ca8b5ee98b6149437ae2c68a (diff) |
Fail instead of aborting on src and out directories naming scheme mismatch (GH issue #394)
Diffstat (limited to 'libbuild2')
-rw-r--r-- | libbuild2/file.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbuild2/file.cxx b/libbuild2/file.cxx index 18147a2..ecb5f80 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 << "naming scheme mismatch for " << out_root << " and " + << s.src_path (); if (s.root_extra->project) { |