From 81fa2ed8a73496537a12386a41b0fe29dc8b5167 Mon Sep 17 00:00:00 2001 From: Xi Ge Date: Tue, 18 Feb 2020 12:10:38 -0800 Subject: [PATCH] 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 --- lib/Frontend/ModuleInterfaceBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Frontend/ModuleInterfaceBuilder.cpp b/lib/Frontend/ModuleInterfaceBuilder.cpp index 2f7a40f255c21..c816dccc55d23 100644 --- a/lib/Frontend/ModuleInterfaceBuilder.cpp +++ b/lib/Frontend/ModuleInterfaceBuilder.cpp @@ -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