aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/file.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/libbuild2/file.cxx b/libbuild2/file.cxx
index 1b00662..87658dd 100644
--- a/libbuild2/file.cxx
+++ b/libbuild2/file.cxx
@@ -971,7 +971,16 @@ namespace build2
rs.root_extra->amalgamation = nullptr;
rs.root_extra->subprojects = nullptr;
+ // See GH issue #322.
+ //
+#if 0
assert (!aovr || aovr->empty ());
+#else
+ if (!(!aovr || aovr->empty ()))
+ fail << "amalgamation directory " << *aovr << " specified for simple "
+ << "project " << src_root <<
+ info << "see https://github.com/build2/build2/issues/322 for details";
+#endif
}
// We assume that bootstrap out cannot load this file explicitly. It
// feels wrong to allow this since that makes the whole bootstrap