Merge pull request #36185 from xymus/move-lock-files

[Frontend] Lock the swiftmodule when rebuilding from the swiftinterface
This commit is contained in:
Alexis Laferrière
2021-03-02 16:29:00 -08:00
committed by GitHub
7 changed files with 18 additions and 12 deletions

View File

@@ -293,7 +293,7 @@ bool ModuleInterfaceBuilder::buildSwiftModule(StringRef OutPath,
// processes are doing the same.
// FIXME: We should surface the module building step to the build system so
// we don't need to synchronize here.
llvm::LockFileManager Locked(interfacePath);
llvm::LockFileManager Locked(OutPath);
switch (Locked) {
case llvm::LockFileManager::LFS_Error:{
// ModuleInterfaceBuilder takes care of correctness and locks are only