aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bdep/new.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index 5998630..359d266 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -1403,8 +1403,10 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
os << "description-file: " << readme_f->leaf (out).posix_representation () << '\n';
os << "url: https://example.org/" << (pn ? pn->string () : n) << '\n'
<< "email: " << pe << '\n'
- << "#build-error-email: " << pe << '\n'
- << "depends: * build2 >= 0.13.0" << '\n'
+ << "#build-error-email: " << pe << '\n';
+ if (t == type::exe)
+ os << "builds: host : &default" << '\n';
+ os << "depends: * build2 >= 0.13.0" << '\n'
<< "depends: * bpkg >= 0.13.0" << '\n'
<< "#depends: libhello ^1.0.0" << '\n';
os.close ();