We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6cd1302 + 006ac8f commit 45cd83dCopy full SHA for 45cd83d
lib/Serialization/ModuleFileSharedCore.cpp
@@ -360,11 +360,9 @@ static ValidationInfo validateControlBlock(
360
static const char* forcedDebugRevision =
361
::getenv("SWIFT_DEBUG_FORCE_SWIFTMODULE_REVISION");
362
363
- bool isCompilerTagged = forcedDebugRevision ||
364
- version::isCurrentCompilerTagged();
365
-
366
StringRef moduleRevision = blobData;
367
- if (isCompilerTagged) {
+ if (forcedDebugRevision ||
+ (requiresRevisionMatch && version::isCurrentCompilerTagged())) {
368
StringRef compilerRevision = forcedDebugRevision ?
369
forcedDebugRevision : version::getCurrentCompilerTag();
370
if (moduleRevision != compilerRevision) {
0 commit comments