Skip to content

Commit 09dc092

Browse files
Add a feature check for extern c support of builtin vectors (#82306)
We want to be able to adopt (#82225) in the stdlib without breaking people building at desk with older toolchains, so let's add a feature flag.
1 parent 84cb3c8 commit 09dc092

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

include/swift/Basic/Features.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ SUPPRESSIBLE_LANGUAGE_FEATURE(ABIAttributeSE0479, 479, "@abi attribute on functi
267267
LANGUAGE_FEATURE(AlwaysInheritActorContext, 472, "@_inheritActorContext(always)")
268268
LANGUAGE_FEATURE(BuiltinSelect, 0, "Builtin.select")
269269
LANGUAGE_FEATURE(BuiltinInterleave, 0, "Builtin.interleave and Builtin.deinterleave")
270+
LANGUAGE_FEATURE(BuiltinVectorsExternC, 0, "Extern C support for Builtin vector types")
270271

271272
// Swift 6
272273
UPCOMING_FEATURE(ConciseMagicFile, 274, 6)

lib/AST/FeatureSet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ static bool usesFeatureDefaultIsolationPerFile(Decl *D) {
679679

680680
UNINTERESTING_FEATURE(BuiltinSelect)
681681
UNINTERESTING_FEATURE(BuiltinInterleave)
682+
UNINTERESTING_FEATURE(BuiltinVectorsExternC)
682683

683684
// ----------------------------------------------------------------------------
684685
// MARK: - FeatureSet

0 commit comments

Comments
 (0)