aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/parser.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-15 08:12:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-15 08:12:41 +0200
commitbd9ca1e55dc1396da73c4699ccc021dc1f604fe6 (patch)
tree37ed64460cf16ae8b83848f0ef97fcf9f28ecd66 /libbuild2/parser.cxx
parentfda8db23380e997e08b45a00476c6965ac33c92c (diff)
Diagnose building of module or ad hoc C++ recipe using static build system
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r--libbuild2/parser.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx
index c2decd3..6d34a11 100644
--- a/libbuild2/parser.cxx
+++ b/libbuild2/parser.cxx
@@ -1143,10 +1143,14 @@ namespace build2
{
// C++
//
-#ifdef BUILD2_BOOTSTRAP
+#if defined(BUILD2_BOOTSTRAP) || defined(LIBBUILD2_STATIC_BUILD)
fail (loc) << "ad hoc c++ recipe" <<
+#ifdef BUILD2_BOOTSTRAP
info << "running bootstrap build system";
#else
+ info << "running statically-linked build system";
+#endif
+#else
// Parse recipe version and optional fragment separator.
//
if (tt == type::newline || tt == type::eos)
@@ -1191,7 +1195,7 @@ namespace build2
ar.reset (
new adhoc_cxx_rule (loc, st.value.size (), ver, move (sep)));
-#endif
+#endif // BUILD2_BOOTSTRAP || LIBBUILD2_STATIC_BUILD
}
else
fail (lloc) << "unknown recipe language '" << *lang << "'";