aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-10-08 13:14:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-10-08 13:21:40 +0200
commit70c36afd53bc38c07f0a4e8d82cd1a113aceea29 (patch)
treeb62931bb81befe265ba71dbdd92f40edd209b7ce
parent4f7a151ea6917320069fbe8c8ddb0f1eb3ca4281 (diff)
Add commented out c/cxx/cc.internal.scope in bdep-generated root.build
-rw-r--r--bdep/new.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index adfb542..e7587d7 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -1653,6 +1653,11 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
//
open (bd / "root." + build_ext);
+ os << "# Uncomment to suppress warnings coming from external libraries." << '\n'
+ << "#" << '\n'
+ << "#" << mc << ".internal.scope = current" << '\n'
+ << '\n';
+
switch (l)
{
case lang::c:
@@ -1675,7 +1680,7 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
}
}
- if ((itest || utest) && !mp.empty ())
+ if (itest || utest)
os << '\n'
<< "# The test target for cross-testing (running tests under Wine, etc)." << '\n'
<< "#" << '\n'