Skip to content

Commit ac91b7a

Browse files
committed
[NCGenerics] hack for module mismatch
1 parent b4985f7 commit ac91b7a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/Serialization/ModuleFileSharedCore.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,12 @@ static ValidationInfo validateControlBlock(
425425
break;
426426
}
427427
case control_block::HAS_NONCOPYABLE_GENERICS: {
428+
// FIXME: temporary hack until the stdlib is actually building.
429+
// This skips over the module mismatch error if the stdlib wasn't built
430+
// with noncopyable generics, so that tests may still run in CI.
431+
if (!SWIFT_ENABLE_EXPERIMENTAL_NONCOPYABLE_GENERICS)
432+
break;
433+
428434
auto hasNoncopyableGenerics = scratch[0];
429435
if (requiresNoncopyableGenerics && !hasNoncopyableGenerics)
430436
result.status = Status::NotUsingNoncopyableGenerics;

0 commit comments

Comments
 (0)