diff --git a/Sources/SWBTaskConstruction/TaskProducers/OtherTaskProducers/ModuleMapTaskProducer.swift b/Sources/SWBTaskConstruction/TaskProducers/OtherTaskProducers/ModuleMapTaskProducer.swift index 3de99336..26124e5c 100644 --- a/Sources/SWBTaskConstruction/TaskProducers/OtherTaskProducers/ModuleMapTaskProducer.swift +++ b/Sources/SWBTaskConstruction/TaskProducers/OtherTaskProducers/ModuleMapTaskProducer.swift @@ -404,7 +404,6 @@ final class ModuleMapTaskProducer: PhasedTaskProducer, TaskProducer { outputStream <<< "module \(try moduleName.asModuleIdentifierString()).Swift {\n" } outputStream <<< " header \"\(interfaceHeaderName.asCStringLiteralContent)\"\n" - outputStream <<< " requires objc\n" outputStream <<< "}\n" return outputStream.bytes diff --git a/Tests/SWBTaskConstructionTests/ModuleMapTaskConstructionTests.swift b/Tests/SWBTaskConstructionTests/ModuleMapTaskConstructionTests.swift index 02438a96..0c67d4ab 100644 --- a/Tests/SWBTaskConstructionTests/ModuleMapTaskConstructionTests.swift +++ b/Tests/SWBTaskConstructionTests/ModuleMapTaskConstructionTests.swift @@ -584,7 +584,6 @@ fileprivate struct ModuleMapTaskConstructionTests: CoreBasedTests { #expect(contents == (OutputByteStream() <<< "framework module SwiftOnly {\n" <<< " header \"SwiftOnly-Swift.h\"\n" - <<< " requires objc\n" <<< "}\n").bytes) } @@ -629,7 +628,6 @@ fileprivate struct ModuleMapTaskConstructionTests: CoreBasedTests { <<< "\n" <<< "module ObjCCompatibilityHeader.Swift {\n" <<< " header \"ObjCCompatibilityHeader-Swift.h\"\n" - <<< " requires objc\n" <<< "}\n").bytes) } @@ -978,7 +976,6 @@ fileprivate struct ModuleMapTaskConstructionTests: CoreBasedTests { <<< "\n" <<< "module \(targetName).Swift {\n" <<< " header \"\(targetName)-Swift.h\"\n" - <<< " requires objc\n" <<< "}\n").bytes) } diff --git a/Tests/SWBTaskConstructionTests/SwiftTaskConstructionTests.swift b/Tests/SWBTaskConstructionTests/SwiftTaskConstructionTests.swift index 42904bd0..76180b0c 100644 --- a/Tests/SWBTaskConstructionTests/SwiftTaskConstructionTests.swift +++ b/Tests/SWBTaskConstructionTests/SwiftTaskConstructionTests.swift @@ -606,7 +606,6 @@ fileprivate struct SwiftTaskConstructionTests: CoreBasedTests { #expect(contents == (OutputByteStream() <<< "framework module CoreFoo {\n" <<< " header \"CoreFoo-Swift.h\"\n" - <<< " requires objc\n" <<< "}\n").bytes) } } @@ -1086,7 +1085,6 @@ fileprivate struct SwiftTaskConstructionTests: CoreBasedTests { stream <<< "\n" stream <<< "module CoreFoo.Swift {\n" stream <<< " header \"CoreFoo-Swift.h\"\n" - stream <<< " requires objc\n" stream <<< "}\n" #expect(contents == stream.bytes)