From 219e00f3b8caec38a9c8fbb4d70e33455aba5a92 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 13 Oct 2022 09:00:11 +0200 Subject: Optimize by going straight to public variable pool where applicable --- build2/cli/init.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build2') diff --git a/build2/cli/init.cxx b/build2/cli/init.cxx index a00fd7f..d7d8251 100644 --- a/build2/cli/init.cxx +++ b/build2/cli/init.cxx @@ -72,7 +72,9 @@ namespace build2 // Enter metadata variables. // - auto& vp (rs.var_pool ()); + // They are all qualified so go straight for the public variable pool. + // + auto& vp (rs.var_pool (true /* public */)); auto& v_ver (vp.insert ("cli.version")); auto& v_sum (vp.insert ("cli.checksum")); -- cgit v1.1