aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-10-08 13:00:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-10-08 13:00:08 +0200
commit4f7a151ea6917320069fbe8c8ddb0f1eb3ca4281 (patch)
tree78ee5c037ae803c71744c1ba5a047e4e27565019
parente98ef8dba32bc564b89a0d3675c4e5645f0ed4f0 (diff)
Remove `builds: host` from bdep-new-generated exe projects
After some thinking it became clear that we cannot assume exe's should not be cross-compiled.
-rw-r--r--bdep/new.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index a888250..adfb542 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -1409,10 +1409,8 @@ 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';
- if (t == type::exe)
- os << "builds: host : &default" << '\n';
- os << "depends: * build2 >= 0.13.0" << '\n'
+ << "#build-error-email: " << pe << '\n'
+ << "depends: * build2 >= 0.13.0" << '\n'
<< "depends: * bpkg >= 0.13.0" << '\n'
<< "#depends: libhello ^1.0.0" << '\n';
os.close ();