@@ -1684,21 +1684,15 @@ std::expected<void, Error> finalize_tree(const Plan& plan) {
16841684 }
16851685 // A TREE THAT RUNS NOWHERE IS NOT A PACKAGE (design 2026-10-29 §4.4): it
16861686 // carries no runner a system can start, and the platform names no
1687- // system its runner exists for. A platform that states no
1688- // `runner.hosts` says nothing either way, which is said, not refused.
1687+ // system of its legs' architectures its runner exists for.
16891688 if (plan.opts .tree && pkg.runsOnSelf .empty () && pkg.runsOnWith .empty ()) {
16901689 auto const & runner = plan.platform .fields .runner ;
1691- if (runner.hostsSet || plan.opts .mode == Mode::BundleAll)
1692- return std::unexpected (Error{std::format (
1693- " {} runs on no system: it carries no runner built here{}, and {} names no "
1694- " system its runner `{}` exists for (runner.hosts).\n use: --mode self-contained "
1695- " --systems <a system this mcpp builds for>" ,
1696- plan.binaryName , plan.opts .mode == Mode::BundleAll ? " " : " (--mode vendored)" ,
1697- plan.platform .display (), runner.cmd .empty () ? std::string () : runner.cmd .front ())});
1698- mcpp::ui::note (std::format (
1699- " {} states no runner.hosts, so the package names no system it runs on "
1700- " (mcpp-package.json runs_on is empty); an index entry cannot be written for it" ,
1701- plan.platform .display ()));
1690+ return std::unexpected (Error{std::format (
1691+ " {} runs on no system: it carries no runner built here{}, and {} names no system of "
1692+ " its architectures its runner `{}` exists for (runner.hosts).\n use: --mode "
1693+ " self-contained --systems <a system this mcpp builds for>" ,
1694+ plan.binaryName , plan.opts .mode == Mode::BundleAll ? " " : " (--mode vendored)" ,
1695+ plan.platform .display (), runner.cmd .empty () ? std::string () : runner.cmd .front ())});
17021696 }
17031697 // What `[pack] include` named is the package's resource, whatever its name.
17041698 for (auto const & rel : *included) stated.role [rel] = " resource" ;
0 commit comments