aboutsummaryrefslogtreecommitdiff
path: root/build2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-07-25 14:29:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-07-25 14:29:11 +0200
commitea69747ba2b371e0e3b1e9ecb044e7d815fbea21 (patch)
treec9bea1977862024031754dd5a29efedb1a8af6cc /build2
parent176c473cc2198d5d4219a030d1a5d8c31a5ace55 (diff)
Exclude cli and bash modules from bootstrap build
Diffstat (limited to 'build2')
-rw-r--r--build2/b.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/build2/b.cxx b/build2/b.cxx
index 0f2a928..de4ee0c 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -57,9 +57,10 @@ using namespace std;
#include <build2/cc/init.hxx>
#include <build2/cxx/init.hxx>
-#include <build2/cli/init.hxx>
-
-#include <build2/bash/init.hxx>
+#ifndef BUILD2_BOOTSTRAP
+# include <build2/cli/init.hxx>
+# include <build2/bash/init.hxx>
+#endif
namespace build2
{
@@ -419,10 +420,12 @@ main (int argc, char* argv[])
bm["cxx.config"] = mf {nullptr, &cxx::config_init};
bm["cxx"] = mf {nullptr, &cxx::init};
+#ifndef BUILD2_BOOTSTRAP
bm["cli.config"] = mf {nullptr, &cli::config_init};
bm["cli"] = mf {nullptr, &cli::init};
bm["bash"] = mf {nullptr, &bash::init};
+#endif
}
keep_going = !ops.serial_stop ();