From 87832d98f34cec0513e5abc14e912eec3100e975 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 27 Feb 2025 12:41:59 +0100 Subject: GraphTraverser: Pass artifacts, blobs and trees to BuildAndStage by rvalue --- src/buildtool/main/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/buildtool/main/main.cpp') diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index 5acba963..e4ac6a02 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -1178,7 +1178,7 @@ auto main(int argc, char* argv[]) -> int { } #ifndef BOOTSTRAP_BUILD_TOOL ReportTaintedness(*analyse_result); - auto const& [actions, blobs, trees] = + auto [actions, blobs, trees] = analyse_result->result_map.ToResult(&stats, &progress); // collect cache targets and artifacts for target-level caching @@ -1206,9 +1206,9 @@ auto main(int argc, char* argv[]) -> int { auto build_result = traverser.BuildAndStage(artifacts, runfiles, - actions, - blobs, - trees, + std::move(actions), + std::move(blobs), + std::move(trees), std::move(cache_artifacts)); if (build_result) { WriteTargetCacheEntries( -- cgit v1.2.3