From 4980f47b4691ad7f4b4a579484fb43bed4db5c99 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 7 Aug 2023 23:10:15 -0400 Subject: cmGlobalGenerator: always support generating rule hashes --- Source/cmGlobalGenerator.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 8a8d2e0..9af6e9b 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -30,6 +30,7 @@ #include "cmAlgorithms.h" #include "cmCPackPropertiesGenerator.h" #include "cmComputeTargetDepends.h" +#include "cmCryptoHash.h" #include "cmCustomCommand.h" #include "cmCustomCommandLines.h" #include "cmDuration.h" @@ -64,7 +65,6 @@ # include # include -# include "cmCryptoHash.h" # include "cmQtAutoGenGlobalInitializer.h" #endif @@ -3222,7 +3222,6 @@ std::set const& cmGlobalGenerator::GetDirectoryContent( void cmGlobalGenerator::AddRuleHash(const std::vector& outputs, std::string const& content) { -#if !defined(CMAKE_BOOTSTRAP) // Ignore if there are no outputs. if (outputs.empty()) { return; @@ -3242,20 +3241,14 @@ void cmGlobalGenerator::AddRuleHash(const std::vector& outputs, // Associate the hash with this output. this->RuleHashes[fname] = hash; -#else - (void)outputs; - (void)content; -#endif } void cmGlobalGenerator::CheckRuleHashes() { -#if !defined(CMAKE_BOOTSTRAP) std::string home = this->GetCMakeInstance()->GetHomeOutputDirectory(); std::string pfile = cmStrCat(home, "/CMakeFiles/CMakeRuleHashes.txt"); this->CheckRuleHashes(pfile, home); this->WriteRuleHashes(pfile); -#endif } void cmGlobalGenerator::CheckRuleHashes(std::string const& pfile, -- cgit v0.12