Merge pull request #63639 from xymus/serial-precise-tag

[Serialization] Don't fail the precise tag check if only the last digit doesn't match
This commit is contained in:
Alexis Laferrière
2023-02-14 09:31:31 -08:00
committed by GitHub
8 changed files with 62 additions and 22 deletions

View File

@@ -1011,7 +1011,7 @@ void Serializer::writeHeader(const SerializationOptions &options) {
static const char* forcedDebugRevision =
::getenv("SWIFT_DEBUG_FORCE_SWIFTMODULE_REVISION");
auto revision = forcedDebugRevision ?
forcedDebugRevision : version::getCurrentCompilerTag();
forcedDebugRevision : version::getCurrentCompilerSerializationTag();
Revision.emit(ScratchRecord, revision);
IsOSSA.emit(ScratchRecord, options.IsOSSA);