Skip to content

Commit 8888752

Browse files
authored
Merge pull request #616 from xymus/c-compat-modulemaps
Don't require objc in modulemaps generated for Swift compatibility headers
2 parents 78e7e1c + 01a7c3d commit 8888752

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

Sources/SWBTaskConstruction/TaskProducers/OtherTaskProducers/ModuleMapTaskProducer.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,6 @@ final class ModuleMapTaskProducer: PhasedTaskProducer, TaskProducer {
404404
outputStream <<< "module \(try moduleName.asModuleIdentifierString()).Swift {\n"
405405
}
406406
outputStream <<< " header \"\(interfaceHeaderName.asCStringLiteralContent)\"\n"
407-
outputStream <<< " requires objc\n"
408407
outputStream <<< "}\n"
409408

410409
return outputStream.bytes

Tests/SWBTaskConstructionTests/ModuleMapTaskConstructionTests.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,6 @@ fileprivate struct ModuleMapTaskConstructionTests: CoreBasedTests {
584584
#expect(contents == (OutputByteStream()
585585
<<< "framework module SwiftOnly {\n"
586586
<<< " header \"SwiftOnly-Swift.h\"\n"
587-
<<< " requires objc\n"
588587
<<< "}\n").bytes)
589588
}
590589

@@ -629,7 +628,6 @@ fileprivate struct ModuleMapTaskConstructionTests: CoreBasedTests {
629628
<<< "\n"
630629
<<< "module ObjCCompatibilityHeader.Swift {\n"
631630
<<< " header \"ObjCCompatibilityHeader-Swift.h\"\n"
632-
<<< " requires objc\n"
633631
<<< "}\n").bytes)
634632
}
635633

@@ -978,7 +976,6 @@ fileprivate struct ModuleMapTaskConstructionTests: CoreBasedTests {
978976
<<< "\n"
979977
<<< "module \(targetName).Swift {\n"
980978
<<< " header \"\(targetName)-Swift.h\"\n"
981-
<<< " requires objc\n"
982979
<<< "}\n").bytes)
983980
}
984981

Tests/SWBTaskConstructionTests/SwiftTaskConstructionTests.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,6 @@ fileprivate struct SwiftTaskConstructionTests: CoreBasedTests {
614614
#expect(contents == (OutputByteStream()
615615
<<< "framework module CoreFoo {\n"
616616
<<< " header \"CoreFoo-Swift.h\"\n"
617-
<<< " requires objc\n"
618617
<<< "}\n").bytes)
619618
}
620619
}
@@ -1094,7 +1093,6 @@ fileprivate struct SwiftTaskConstructionTests: CoreBasedTests {
10941093
stream <<< "\n"
10951094
stream <<< "module CoreFoo.Swift {\n"
10961095
stream <<< " header \"CoreFoo-Swift.h\"\n"
1097-
stream <<< " requires objc\n"
10981096
stream <<< "}\n"
10991097
#expect(contents == stream.bytes)
11001098

0 commit comments

Comments
 (0)