mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Give swiftdocs a stable version
We're committing to this as a forwards-compatible format, and in most cases probably backwards-compatible as well!
This commit is contained in:
@@ -472,8 +472,7 @@ void DocSerializer::writeDocHeader() {
|
||||
control_block::TargetLayout Target(Out);
|
||||
|
||||
auto& LangOpts = M->getASTContext().LangOpts;
|
||||
Metadata.emit(ScratchRecord,
|
||||
SWIFTMODULE_VERSION_MAJOR, SWIFTMODULE_VERSION_MINOR,
|
||||
Metadata.emit(ScratchRecord, SWIFTDOC_VERSION_MAJOR, SWIFTDOC_VERSION_MINOR,
|
||||
/*short version string length*/0, /*compatibility length*/0,
|
||||
version::getSwiftFullVersion(
|
||||
LangOpts.EffectiveLanguageVersion));
|
||||
|
||||
Reference in New Issue
Block a user