aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2')
-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 << "'";