From eab8e45dec38f0aeac62e3c81fef52c4c489b23c Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 15 Aug 2016 14:02:59 +0200 Subject: [PATCH] Fix race condition between hasEntry and addObjectToCache --- clcache.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clcache.py b/clcache.py index cd299de8..b675c82b 100644 --- a/clcache.py +++ b/clcache.py @@ -1493,8 +1493,9 @@ def processDirect(cache, objectFile, compiler, cmdLine, sourceFile): postProcessing = lambda compilerResult: postprocessNoManifestMiss( cache, objectFile, manifestSection, manifestHash, baseDir, sourceFile, compilerResult, stripIncludes) - compilerResult = invokeRealCompiler(compiler, cmdLine, captureOutput=True) - compilerResult = postProcessing(compilerResult) + compilerResult = invokeRealCompiler(compiler, cmdLine, captureOutput=True) + compilerResult = postProcessing(compilerResult) + printTraceStatement("Finished. Exit code {0:d}".format(compilerResult[0])) return compilerResult