mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Frontend: add an option -bad-file-descriptor-retry-count
This option allows the compiler to retry opening an input file if the previous opening returns an error of bad file descriptor. Swift-driver will set this argument in certain circumstances to walk-around such error. rdar://73157185
This commit is contained in:
@@ -80,7 +80,8 @@ namespace swift {
|
||||
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
|
||||
getFileOrSTDIN(llvm::vfs::FileSystem &FS,
|
||||
const llvm::Twine &Name, int64_t FileSize = -1,
|
||||
bool RequiresNullTerminator = true, bool IsVolatile = false);
|
||||
bool RequiresNullTerminator = true, bool IsVolatile = false,
|
||||
unsigned BADFRetry = 0);
|
||||
} // end namespace vfs
|
||||
|
||||
} // end namespace swift
|
||||
|
||||
Reference in New Issue
Block a user