ModuleInterface: Canonicalize OS version numbers in loaded swiftinterfaces.

This commit is contained in:
Allan Shortlidge
2025-06-08 12:59:44 -07:00
parent 1a8d8413b4
commit 6e3a2d22c8
4 changed files with 67 additions and 18 deletions

View File

@@ -580,7 +580,8 @@ public:
bool extractCompilerFlagsFromInterface(
StringRef interfacePath, StringRef buffer, llvm::StringSaver &ArgSaver,
SmallVectorImpl<const char *> &SubArgs,
std::optional<llvm::Triple> PreferredTarget = std::nullopt);
std::optional<llvm::Triple> PreferredTarget = std::nullopt,
DiagnosticEngine *diagEngine = nullptr);
/// Extract the user module version number from an interface file.
llvm::VersionTuple extractUserModuleVersionFromInterface(StringRef moduleInterfacePath);