From 4c51fd7062a7e1c34deed9a7e9f1e87239a2e38c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 11 Jun 2020 13:55:34 +0200 Subject: Diagnose use of ad hoc C++ recipes with bootstrap build system --- libbuild2/parser.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 << "'"; -- cgit v1.1