From 29d6eb7548a6c96bacee9af623b85c011c85ad72 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 2 Apr 2020 12:55:31 +0200 Subject: Use ~build2 instead of ~host for build system modules configuration Also suppress warning about unused config.* values when creating such a configuration. --- bbot/worker/worker.cxx | 14 ++++++++++++-- doc/manual.cli | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx index 8a5c8d7..025fa04 100644 --- a/bbot/worker/worker.cxx +++ b/bbot/worker/worker.cxx @@ -637,13 +637,23 @@ build (size_t argc, const char* argv[]) // change_wd (trace, &r.log, rwd); - // b create() config.config.load=~host + // b create() config.config.load=~build2 + // + // Note also that we suppress warnings about unused config.* values, + // such CLI configuration. + // + // What if a module wants to use CLI? The current thinking is that we + // will be "whitelisting" base (i.e., those that can plausibly be used + // by multiple modules) libraries and tools for use by build system + // modules. So if and when we whitelist CLI, we will add it here, next + // to cc. // r.status |= run_b ( trace, r.log, wre, "-V", "create(" + module_dir.representation () + ",cc)", - "config.config.load=~host"); + "config.config.load=~build2", + "config.config.persist+='config.*'@unused=drop"); if (!r.status) break; diff --git a/doc/manual.cli b/doc/manual.cli index 225065e..4191d6d 100644 --- a/doc/manual.cli +++ b/doc/manual.cli @@ -889,7 +889,7 @@ Such commands, therefore, have no associated \i{step id}: \ # # -b -V create config.config.load=~host +b -V create config.config.load=~build2 bpkg -v create --existing # bpkg.configure.add -- cgit v1.1