ModuleInterface: rephrase remark message when acquiring lock file failed

The original remark message “could not acquire lock file for module interface” sounds too severe.
It may confuse users that this is a serious issue. We should rephrase it to a less obtrusive one.

rdar://70055223
This commit is contained in:
Xi Ge
2020-10-07 10:43:31 -07:00
parent 161899d490
commit 2e0fb76654
2 changed files with 2 additions and 2 deletions

View File

@@ -297,7 +297,7 @@ bool ModuleInterfaceBuilder::buildSwiftModule(StringRef OutPath,
// necessary for performance. Fallback to building the module in case of any lock
// related errors.
if (RemarkRebuild) {
diagnose(diag::interface_file_lock_failure, interfacePath);
diagnose(diag::interface_file_lock_failure);
}
// Clear out any potential leftover.
Locked.unsafeRemoveLockFile();