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
This commit is contained in:
Xi Ge
2020-02-18 12:10:38 -08:00
parent bf7ac27107
commit 81fa2ed8a7

View File

@@ -420,7 +420,7 @@ bool ModuleInterfaceBuilder::buildSwiftModule(StringRef OutPath,
case llvm::LockFileManager::LFS_Shared: {
// Someone else is responsible for building the module. Wait for them to
// finish.
switch (Locked.waitForUnlock()) {
switch (Locked.waitForUnlock(256)) {
case llvm::LockFileManager::Res_Success: {
// This process may have a different module output path. If the other
// process doesn't build the interface to this output path, we should try