mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #36185 from xymus/move-lock-files
[Frontend] Lock the swiftmodule when rebuilding from the swiftinterface
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user