Skip to content

Commit e4a4dfe

Browse files
authored
Merge pull request #29910 from nkcsgexi/increase-timeout-time
ModuleInterface: increase timeout time for .interface file lock
2 parents 3526539 + 81fa2ed commit e4a4dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Frontend/ModuleInterfaceBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ bool ModuleInterfaceBuilder::buildSwiftModule(StringRef OutPath,
420420
case llvm::LockFileManager::LFS_Shared: {
421421
// Someone else is responsible for building the module. Wait for them to
422422
// finish.
423-
switch (Locked.waitForUnlock()) {
423+
switch (Locked.waitForUnlock(256)) {
424424
case llvm::LockFileManager::Res_Success: {
425425
// This process may have a different module output path. If the other
426426
// process doesn't build the interface to this output path, we should try

0 commit comments

Comments
 (0)