summaryrefslogtreecommitdiffstats
path: root/ChangeLog.manual
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-02-11 23:14:34 (GMT)
committerBrad King <brad.king@kitware.com>2010-02-11 23:14:34 (GMT)
commit5f926016a9ddb348a494688b979f4ffef978cac7 (patch)
tree9427878f61d17f845786a388503deb2a3a477c5a /ChangeLog.manual
parent224dde9085aa05b23b3ee86d33ffff9c1625a510 (diff)
downloadCMake-5f926016a9ddb348a494688b979f4ffef978cac7.zip
CMake-5f926016a9ddb348a494688b979f4ffef978cac7.tar.gz
CMake-5f926016a9ddb348a494688b979f4ffef978cac7.tar.bz2
Fix rule hash persistence file generation
We store custom command rule hashes in CMakeFiles/CMakeRuleHashes.txt persistently across CMake runs. When the rule hash changes we delete the custom command output file and write a new hash into the persistence file. This functionality was first added by the commit 'Introduce "rule hashes" to help rebuild files when rules change.' (2008-06-02). However, the implementation in cmGlobalGenerator::CheckRuleHashes kept the file open for read when attempting to rewrite a new file. On Windows filesystems this prevented the new version of the file from being written! This caused the first set of rule hashes to be used forever within a build tree, meaning that all custom commands whose rules changed would be rebuilt every time CMake regenerated the build tree. In this commit we address the problem by splitting the read and write operations into separate methods. This ensures that the input stream is closed before the output stream opens the file.
Diffstat (limited to 'ChangeLog.manual')
0 files changed, 0 insertions, 0 deletions