aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-11 13:55:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-11 13:55:34 +0200
commit4c51fd7062a7e1c34deed9a7e9f1e87239a2e38c (patch)
tree45a0996ad6f7f2a2c10f6d3fd7bb286c37b25018
parent5c5554393884361fc0f4374a5118fba0b8025ebf (diff)
Diagnose use of ad hoc C++ recipes with bootstrap build system
-rw-r--r--libbuild2/parser.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx
index 21b5794..c2decd3 100644
--- a/libbuild2/parser.cxx
+++ b/libbuild2/parser.cxx
@@ -1143,7 +1143,10 @@ namespace build2
{
// C++
//
-
+#ifdef BUILD2_BOOTSTRAP
+ fail (loc) << "ad hoc c++ recipe" <<
+ info << "running bootstrap build system";
+#else
// Parse recipe version and optional fragment separator.
//
if (tt == type::newline || tt == type::eos)
@@ -1188,6 +1191,7 @@ namespace build2
ar.reset (
new adhoc_cxx_rule (loc, st.value.size (), ver, move (sep)));
+#endif
}
else
fail (lloc) << "unknown recipe language '" << *lang << "'";