aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-11-20 09:33:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-11-20 09:33:11 +0200
commita92bb09bcd4b99f02fd5de242a2094544a1fb185 (patch)
tree66df76bb80b6d4ae0583cd5e608dc7e0d1f8b635
parentab2eb3625208211d6523402d38a54dc60d489119 (diff)
Disable importable header support in bdep-new
Looks like people are starting to give up on header units so let's not complicate/confuse things unnecessarily.
-rw-r--r--bdep/new.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index a1b390f..84bb046 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -1999,10 +1999,12 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
<< "h{*}: extension = h" << '\n'
<< "c{*}: extension = c" << '\n';
+#if 0
os << '\n'
<< "# Assume headers are importable unless stated otherwise." << '\n'
<< "#" << '\n'
<< "h{*}: c.importable = true" << '\n';
+#endif
if (newline)
os << '\n';
@@ -2022,10 +2024,12 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
if (te) os << "txx{*}: extension = " << pure_ext (*te) << '\n';
os << "cxx{*}: extension = " << pure_ext (xe) << '\n';
+#if 0
os << '\n'
<< "# Assume headers are importable unless stated otherwise." << '\n'
<< "#" << '\n'
<< "hxx{*}: cxx.importable = true" << '\n';
+#endif
if (newline)
os << '\n';
@@ -2820,11 +2824,13 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
<< inc_dir << hg << "{version}: " << inc_dir << "in{version} " <<
"$src_root/manifest" << '\n';
+#if 0
if (!exph.empty ())
os << '\n'
<< inc_dir << hg << "{export}@" <<
(!bfile_in_pfx_inc ? "./" : inc_dir) << ": " << mp <<
".importable = false" << '\n';
+#endif
if (binless)
{
@@ -3054,11 +3060,13 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
<< inc_dir << hg << "{version}: " << inc_dir << "in{version} " <<
"$src_root/manifest" << '\n';
+#if 0
if (!exph.empty () && !split_buildfile)
os << '\n'
<< inc_dir << hg << "{export}@" <<
(!bfile_in_pfx_inc ? "./" : inc_dir) << ": " << mp <<
".importable = false" << '\n';
+#endif
// Build.
//