mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
ModuleInterface/Serialization: allow library authors to define a custom module version number
This allows library authors to pass down a project version number so that library users can conditionally import that library based on the available version in the search paths. Needed for rdar://73992299
This commit is contained in:
@@ -66,6 +66,9 @@ class ModuleFileSharedCore {
|
||||
/// The Swift compatibility version in use when this module was built.
|
||||
version::Version CompatibilityVersion;
|
||||
|
||||
/// User-defined module version number.
|
||||
llvm::VersionTuple UserModuleVersion;
|
||||
|
||||
/// The data blob containing all of the module's identifiers.
|
||||
StringRef IdentifierData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user