From 70c36afd53bc38c07f0a4e8d82cd1a113aceea29 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 8 Oct 2021 13:14:44 +0200 Subject: Add commented out c/cxx/cc.internal.scope in bdep-generated root.build --- bdep/new.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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' -- cgit v1.1