Skip to content

Commit a3f8115

Browse files
committed
Don't mark the compatibility header module map as requiring Objective-C
The module map generated for the compatibility header was marked as `requires objc`. This triggers an error when importing it from a C source file. This declaration is superfluous, the compatibility header is already printed in a way where the Objective-C code is protected behind a language check. C clients can safely import the current compatibility header even if it may not see any content. Let's lift this restriction. It isn't currently necessary and we're adding C content to the compatibility header with the official support for `@cdecl` that is independent of Objective-C.
1 parent f625710 commit a3f8115

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Sources/Build/BuildDescription/SwiftModuleBuildDescription.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,6 @@ public final class SwiftModuleBuildDescription {
898898
#"""
899899
module \#(self.target.c99name) {
900900
header "\#(self.objCompatibilityHeaderPath.pathString)"
901-
requires objc
902901
}
903902
904903
"""#.utf8

0 commit comments

Comments
 (0)