summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/buildtool/file_system/file_root.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/buildtool/file_system/file_root.hpp b/src/buildtool/file_system/file_root.hpp
index 5db6ed82..adbc3352 100644
--- a/src/buildtool/file_system/file_root.hpp
+++ b/src/buildtool/file_system/file_root.hpp
@@ -141,6 +141,14 @@ class FileRoot {
}
return config < other.config;
}
+
+ [[nodiscard]] auto ToString() const -> std::string {
+ return fmt::format("([\"@\", {}, {}, {}], {})",
+ nlohmann::json(repository).dump(),
+ nlohmann::json(target_module).dump(),
+ nlohmann::json(target_name).dump(),
+ config.dump());
+ }
};
private: