diff options
Diffstat (limited to 'src/buildtool/graph_traverser/graph_traverser.cpp')
-rw-r--r-- | src/buildtool/graph_traverser/graph_traverser.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/buildtool/graph_traverser/graph_traverser.cpp b/src/buildtool/graph_traverser/graph_traverser.cpp index 14392d2a..0ba2f09a 100644 --- a/src/buildtool/graph_traverser/graph_traverser.cpp +++ b/src/buildtool/graph_traverser/graph_traverser.cpp @@ -437,7 +437,7 @@ auto GraphTraverser::BuildArtifacts( std::map<std::string, ArtifactDescription> const& runfiles, std::vector<ActionDescription::Ptr>&& actions, std::vector<Tree::Ptr>&& trees, - std::vector<TreeOverlay::Ptr>&& /*tree_overlays*/, + std::vector<TreeOverlay::Ptr>&& tree_overlays, std::vector<std::string>&& blobs, std::vector<ArtifactDescription> const& extra_artifacts) const -> std::optional< @@ -461,10 +461,13 @@ auto GraphTraverser::BuildArtifacts( } std::vector<ActionDescription> tree_actions{}; - tree_actions.reserve(trees.size()); + tree_actions.reserve(trees.size() + tree_overlays.size()); for (auto const& tree : trees) { tree_actions.emplace_back(tree->Action()); } + for (auto const& tree : tree_overlays) { + tree_actions.emplace_back(tree->Action()); + } if (not graph->Add(actions) or not graph->Add(tree_actions)) { Logger::Log(logger_, LogLevel::Error, [&actions]() { |