Skip to content

Commit 81fa2ed

Browse files
committed
ModuleInterface: increase timeout time for .interface file lock
Harlan and Robert mentioned the default timeout time may not suffice for building the stdlib from the interface file. rdar://59560260
1 parent bf7ac27 commit 81fa2ed

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)