[Serialization] Add -swift-compiler-version option to swiftmodules

This commit is contained in:
Pavel Yaskevich
2024-10-23 17:10:44 -07:00
parent 39fb638516
commit ab4d8f61eb
12 changed files with 78 additions and 5 deletions

View File

@@ -103,6 +103,12 @@ class ModuleFileSharedCore {
/// Name to use in public facing diagnostics and documentation.
StringRef PublicModuleName;
/// The version of the Swift compiler used to produce swiftinterface
/// this module is based on or build the module itself. This is
/// the most precise version possible - a compiler tag or version
/// if this is a development compiler.
llvm::VersionTuple SwiftCompilerVersion;
/// \c true if this module has incremental dependency information.
bool HasIncrementalInfo = false;