1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-18 17:31:57 +08:00

Ninja: Factor metadata cleanup into dedicated method

This commit is contained in:
Brad King
2020-01-27 15:08:23 -05:00
parent 5d92e60d81
commit b12b013028
2 changed files with 6 additions and 0 deletions

View File

@@ -528,6 +528,11 @@ void cmGlobalNinjaGenerator::Generate()
this->CloseRulesFileStream(); this->CloseRulesFileStream();
this->CloseBuildFileStreams(); this->CloseBuildFileStreams();
this->CleanMetaData();
}
void cmGlobalNinjaGenerator::CleanMetaData()
{
auto run_ninja_tool = [this](std::vector<char const*> const& args) { auto run_ninja_tool = [this](std::vector<char const*> const& args) {
std::vector<std::string> command; std::vector<std::string> command;
command.push_back(this->NinjaCommand); command.push_back(this->NinjaCommand);

View File

@@ -438,6 +438,7 @@ private:
bool OpenRulesFileStream(); bool OpenRulesFileStream();
void CloseRulesFileStream(); void CloseRulesFileStream();
void CleanMetaData();
/// Write the common disclaimer text at the top of each build file. /// Write the common disclaimer text at the top of each build file.
void WriteDisclaimer(std::ostream& os); void WriteDisclaimer(std::ostream& os);