mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -360,11 +360,9 @@ static ValidationInfo validateControlBlock(
|
||||
static const char* forcedDebugRevision =
|
||||
::getenv("SWIFT_DEBUG_FORCE_SWIFTMODULE_REVISION");
|
||||
|
||||
bool isCompilerTagged = forcedDebugRevision ||
|
||||
version::isCurrentCompilerTagged();
|
||||
|
||||
StringRef moduleRevision = blobData;
|
||||
if (isCompilerTagged) {
|
||||
if (forcedDebugRevision ||
|
||||
(requiresRevisionMatch && version::isCurrentCompilerTagged())) {
|
||||
StringRef compilerRevision = forcedDebugRevision ?
|
||||
forcedDebugRevision : version::getCurrentCompilerTag();
|
||||
if (moduleRevision != compilerRevision) {
|
||||
|
||||
Reference in New Issue
Block a user