diff options
author | Brad King <brad.king@kitware.com> | 2021-05-18 11:09:22 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-19 12:07:58 -0400 |
commit | c5195193d3525dc2b661757e0039486e39b94f27 (patch) | |
tree | e1842c940ea33eb89ce7a78dbeac2bf3a5c551cb /Source/cmNinjaUtilityTargetGenerator.cxx | |
parent | 8bac527b0c8ada5c40171cf01f673f9597ffdb90 (diff) | |
download | cmake-c5195193d3525dc2b661757e0039486e39b94f27.tar.gz |
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/cmNinjaUtilityTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaUtilityTargetGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaUtilityTargetGenerator.cxx b/Source/cmNinjaUtilityTargetGenerator.cxx index 7a04c470bc..6297252f3a 100644 --- a/Source/cmNinjaUtilityTargetGenerator.cxx +++ b/Source/cmNinjaUtilityTargetGenerator.cxx @@ -180,7 +180,7 @@ void cmNinjaUtilityTargetGenerator::WriteUtilBuildStatements( gg->WriteCustomCommandBuild( command, desc, "Utility command for " + this->GetTargetName(), /*depfile*/ "", /*job_pool*/ "", uses_terminal, - /*restat*/ true, util_outputs, ccConfig, deps); + /*restat*/ true, ccConfig, std::move(util_outputs), std::move(deps)); } phonyBuild.ExplicitDeps.push_back(utilCommandName); |