]> granicus.if.org Git - clang/commit
Diagnose timeouts in the LockFileManager and delete the dead lock file
authorBen Langmuir <blangmuir@apple.com>
Mon, 9 Feb 2015 20:35:13 +0000 (20:35 +0000)
committerBen Langmuir <blangmuir@apple.com>
Mon, 9 Feb 2015 20:35:13 +0000 (20:35 +0000)
commit2e42451bb704c5eafcb9d1b3766ede37de794db6
tree4f8f1067f2c132abf323c28947d24a1c2bd53203
parent4d5e3d60ab3579e8729221774c1d67d05322be5c
Diagnose timeouts in the LockFileManager and delete the dead lock file

If the lock file manager times out, we should give an error rather than
silently trying to load the existing module.  And delete the
(presumably) dead lock file, since it will otherwise prevent progress in
future invokations. This is unsound since we have no way to prove that
the lock file we are deleting is the same one we timed out on, but since
the lock is only to avoid excessive rebuilding anyway it should be okay.
Depends on llvm r228603.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228604 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticCommonKinds.td
lib/Frontend/CompilerInstance.cpp