| dds_log(trace, "Add entry point object file: {}", main_obj.string()); | dds_log(trace, "Add entry point object file: {}", main_obj.string()); | ||||
| spec.inputs.push_back(std::move(main_obj)); | spec.inputs.push_back(std::move(main_obj)); | ||||
| for (const lm::usage& links : _links) { | |||||
| dds_log(trace, " - Link with: {}/{}", links.name, links.namespace_); | |||||
| extend(spec.inputs, env.ureqs.link_paths(links)); | |||||
| } | |||||
| if (lib.archive_plan()) { | if (lib.archive_plan()) { | ||||
| // The associated library has compiled components. Add the static library a as a linker | // The associated library has compiled components. Add the static library a as a linker | ||||
| // input | // input | ||||
| dds_log(trace, "Executable has no corresponding archive library input"); | dds_log(trace, "Executable has no corresponding archive library input"); | ||||
| } | } | ||||
| for (const lm::usage& links : _links) { | |||||
| dds_log(trace, " - Link with: {}/{}", links.name, links.namespace_); | |||||
| extend(spec.inputs, env.ureqs.link_paths(links)); | |||||
| } | |||||
| // Do it! | // Do it! | ||||
| const auto link_command | const auto link_command | ||||
| = env.toolchain.create_link_executable_command(spec, dds::fs::current_path(), env.knobs); | = env.toolchain.create_link_executable_command(spec, dds::fs::current_path(), env.knobs); |