From dfb51bc816cde2cb345f8a0300205e6ac95a2065 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 30 Mar 2020 15:30:08 +0200 Subject: Switch to project variable visibility by default --- libbuild2/cc/init.cxx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'libbuild2/cc/init.cxx') diff --git a/libbuild2/cc/init.cxx b/libbuild2/cc/init.cxx index 723b678..8d66376 100644 --- a/libbuild2/cc/init.cxx +++ b/libbuild2/cc/init.cxx @@ -74,7 +74,7 @@ namespace build2 // load_module (rs, rs, "bin.vars", loc); - // Enter variables. Note: some overridable, some not. + // Enter variables. // auto& vp (rs.var_pool ()); @@ -82,11 +82,11 @@ namespace build2 // NOTE: remember to update documentation if changing anything here. // - vp.insert ("config.cc.poptions", true); - vp.insert ("config.cc.coptions", true); - vp.insert ("config.cc.loptions", true); - vp.insert ("config.cc.aoptions", true); - vp.insert ("config.cc.libs", true); + vp.insert ("config.cc.poptions"); + vp.insert ("config.cc.coptions"); + vp.insert ("config.cc.loptions"); + vp.insert ("config.cc.aoptions"); + vp.insert ("config.cc.libs"); vp.insert ("cc.poptions"); vp.insert ("cc.coptions"); @@ -101,11 +101,11 @@ namespace build2 // Hint variables (not overridable). // - vp.insert ("config.cc.id"); - vp.insert ("config.cc.hinter"); // Hinting module. - vp.insert ("config.cc.pattern"); - vp.insert ("config.cc.mode"); - vp.insert ("config.cc.target"); + vp.insert ("config.cc.id", false); + vp.insert ("config.cc.hinter", false); // Hinting module. + vp.insert ("config.cc.pattern", false); + vp.insert ("config.cc.mode", false); + vp.insert ("config.cc.target", false); // Compiler runtime and C standard library. // @@ -137,7 +137,7 @@ namespace build2 // Ability to disable using preprocessed output for compilation. // - vp.insert ("config.cc.reprocess", true); + vp.insert ("config.cc.reprocess"); vp.insert ("cc.reprocess"); // Register scope operation callback. -- cgit v1.1