diff options
author | Brad King <brad.king@kitware.com> | 2021-05-18 15:09:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-19 16:07:58 (GMT) |
commit | c5195193d3525dc2b661757e0039486e39b94f27 (patch) | |
tree | e1842c940ea33eb89ce7a78dbeac2bf3a5c551cb /Source/cmLocalNinjaGenerator.cxx | |
parent | 8bac527b0c8ada5c40171cf01f673f9597ffdb90 (diff) | |
download | CMake-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.cxx | 5 |
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)); } } } |