MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteRuleHashes

Method WriteRuleHashes

Source/cmGlobalGenerator.cxx:3796–3809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3794}
3795
3796void cmGlobalGenerator::WriteRuleHashes(std::string const& pfile)
3797{
3798 // Now generate a new persistence file with the current hashes.
3799 if (this->RuleHashes.empty()) {
3800 cmSystemTools::RemoveFile(pfile);
3801 } else {
3802 cmGeneratedFileStream fout(pfile);
3803 fout << "# Hashes of file build rules.\n";
3804 for (auto const& rh : this->RuleHashes) {
3805 fout.write(rh.second.Data, 32);
3806 fout << ' ' << rh.first << '\n';
3807 }
3808 }
3809}
3810
3811void cmGlobalGenerator::WriteSummary()
3812{

Callers 1

CheckRuleHashesMethod · 0.95

Calls 2

emptyMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected