Skip to content
This repository was archived by the owner on Feb 4, 2020. It is now read-only.

Commit 7e6ed04

Browse files
committed
Cleanup createManifestEntry
1 parent fbf4021 commit 7e6ed04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clcache.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,12 +1386,12 @@ def processCacheHit(cache, objectFile, cachekey):
13861386

13871387
def createManifestEntry(manifestHash, includePaths):
13881388
sortedIncludePaths = sorted(set(includePaths))
1389-
includesWithHash = {path:getFileHash(path) for path in sortedIncludePaths}
1390-
includesContentHash = ManifestRepository.getIncludesContentHashForHashes(
1391-
[includesWithHash[key] for key in sortedIncludePaths])
1392-
cachekey = CompilerArtifactsRepository.computeKeyDirect(manifestHash, includesContentHash)
1389+
includeHashes = [getFileHash(path) for path in sortedIncludePaths]
13931390

13941391
safeIncludes = [collapseBasedirToPlaceholder(path) for path in sortedIncludePaths]
1392+
includesContentHash = ManifestRepository.getIncludesContentHashForHashes(includeHashes)
1393+
cachekey = CompilerArtifactsRepository.computeKeyDirect(manifestHash, includesContentHash)
1394+
13951395
return ManifestEntry(safeIncludes, includesContentHash, cachekey)
13961396

13971397

0 commit comments

Comments
 (0)