|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <spdlog/spdlog.h> |
|
|
#include <spdlog/spdlog.h> |
|
|
|
|
|
|
|
|
|
|
|
#include <algorithm> |
|
|
#include <cassert> |
|
|
#include <cassert> |
|
|
|
|
|
|
|
|
using namespace dds; |
|
|
using namespace dds; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
auto main_obj = _main_compile.calc_object_file_path(env); |
|
|
auto main_obj = _main_compile.calc_object_file_path(env); |
|
|
spec.inputs.push_back(std::move(main_obj)); |
|
|
spec.inputs.push_back(std::move(main_obj)); |
|
|
|
|
|
std::reverse(spec.inputs.begin(), spec.inputs.end()); |
|
|
|
|
|
|
|
|
const auto link_command = env.toolchain.create_link_executable_command(spec); |
|
|
const auto link_command = env.toolchain.create_link_executable_command(spec); |
|
|
spdlog::info("Linking executable: {}", fs::relative(spec.output, env.output_root).string()); |
|
|
spdlog::info("Linking executable: {}", fs::relative(spec.output, env.output_root).string()); |