diff --git a/Sources/SWBCore/LibSwiftDriver/LibSwiftDriver.swift b/Sources/SWBCore/LibSwiftDriver/LibSwiftDriver.swift index bd6cd847..3f963cb9 100644 --- a/Sources/SWBCore/LibSwiftDriver/LibSwiftDriver.swift +++ b/Sources/SWBCore/LibSwiftDriver/LibSwiftDriver.swift @@ -200,7 +200,9 @@ public final class SwiftModuleDependencyGraph: SwiftGlobalExplicitDependencyGrap if let modulePath = VirtualPath.lookup(details.compiledModulePath.path).absolutePath { swiftmodulePaths.append(modulePath.pathString) } - case .clang, .swiftPlaceholder: + case .clang: + fallthrough + default: break } } @@ -223,15 +225,13 @@ public final class SwiftModuleDependencyGraph: SwiftGlobalExplicitDependencyGrap } fileDependencies.append(contentsOf: moduleInfo.sourceFiles ?? []) switch moduleInfo.details { - case .swift: - break - case .swiftPlaceholder: - break case .swiftPrebuiltExternal(let details): if let modulePath = VirtualPath.lookup(details.compiledModulePath.path).absolutePath { fileDependencies.append(modulePath.pathString) } - case .clang: + case .swift, .clang: + fallthrough + default: break } }