summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-18 15:09:22 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-19 16:07:58 (GMT)
commitc5195193d3525dc2b661757e0039486e39b94f27 (patch)
treee1842c940ea33eb89ce7a78dbeac2bf3a5c551cb /Source/cmLocalNinjaGenerator.cxx
parent8bac527b0c8ada5c40171cf01f673f9597ffdb90 (diff)
downloadCMake-c5195193d3525dc2b661757e0039486e39b94f27.zip
CMake-c5195193d3525dc2b661757e0039486e39b94f27.tar.gz
CMake-c5195193d3525dc2b661757e0039486e39b94f27.tar.bz2
cmGlobalNinjaGenerator: Reduce string copies in WriteCustomCommandBuild
Re-order arguments to group those with similar roles. Use move semantics to avoid copying vectors of strings.
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r--Source/cmLocalNinjaGenerator.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index 82aa3c4..a2090cf 100644
--- a/Source/cmLocalNinjaGenerator.cxx
+++ b/Source/cmLocalNinjaGenerator.cxx
@@ -709,8 +709,9 @@ void cmLocalNinjaGenerator::WriteCustomCommandBuildStatement(
customStep),
this->ConstructComment(ccg), comment, depfile, cc->GetJobPool(),
cc->GetUsesTerminal(),
- /*restat*/ !symbolic || !byproducts.empty(), ninjaOutputs, fileConfig,
- ninjaDeps, orderOnlyDeps);
+ /*restat*/ !symbolic || !byproducts.empty(), fileConfig,
+ std::move(ninjaOutputs), std::move(ninjaDeps),
+ std::move(orderOnlyDeps));
}
}
}